How to assign the value returned by the regex execute function to a variable?

Status
Not open for further replies.

AJBoy

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
I have a regex for pattern matching and once the match has been found the matched value has to be assigned to a variable

I used this snippet and it has been returning an error stating invalid procedure call or argument

Set M = regexpLocation.Execute(subjct)
Location = M(0).Value

How can i assign the matched value to Location, so that i can move the Location value to an excel cell?
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
R Assign Categories "Round Robin" style but in a shared mailbox but on specific emails only Outlook VBA and Custom Forms 8
P Auto assign shared mailbox Outlook VBA and Custom Forms 1
D Assign categories to outgoing emails Outlook VBA and Custom Forms 0
F How to assign a task to a public task folder? Using Outlook 1
soadfan assign category (VBA) Using Outlook 7
Diane Poremsky Assign one task to several people New Slipstick.com Articles 0
Diane Poremsky Assign an Email Account to an Outlook Contact New Slipstick.com Articles 0
E for Mac: Assign Task not available!? Using Outlook 1
E Outlook VBA to print attached Pdf to a fax printer and assign fax number Using Outlook 0
A Assign a unique number to every message I send Using Outlook 0
Z assign unique number email Using Outlook 8
T How to Assign Retention Tags for Notes Items in Exchange/Outlook 2010? Exchange Server Administration 0
L Can you use Exchange 2010 to control which users may or may not assign tasks to other users in Outlo Exchange Server Administration 2
N Assign Task from shared Task folder error Using Outlook 3
Q Don't have right permissions to assign "send as" rights in Exchange 2010 SP1 Exchange Server Administration 7
I Outlook 2010 Archiving Assign Policy Greyed out Using Outlook 1
C How do you assign a color to emails that are only colorized if received from a specific person? Using Outlook 2
F Any way to add emails to favourites or assign shortcuts to them? Using Outlook 5
M I have added an Assign Task button to a cutom group in the Tasks Ribbon. When I click on it I get a Using Outlook 3
P Can I Assign Outlook Tasks to a Public Folder? Using Outlook 1
P Can I Assign Put a Public Folder on a Tasks's Update List? Using Outlook 5
C Y i cannot assign service to the newly added EXCHANGE certificate? Exchange Server Administration 6
C How to assign certificate(s) to an CAS array? Exchange Server Administration 1
C how should i assign an SSL certificate to a CAS array? Exchange Server Administration 2
A Outlook 2010 - assign a color category to email Using Outlook 2
D Update List clears after sending to assign person. Using Outlook 1
D assign & accept tasks using an IMAP email system Using Outlook 2
M Re: Exchange 2010 Resource forest - How do you assign permissions to share linked mailboxes? Exchange Server Administration 3
M Exchange 2010 Resource forest - How do you assign permissions to share linked mailboxes? Exchange Server Administration 7
D Assign rbac to specific group does not take affect. Exchange Server Administration 15
B Exchaneg 2010 SP1 Possible Bug, Cannot create move to archive retention tag on inbox, but can create a new one and edit and assign inbox to it Exchange Server Administration 3
J Assign a signature by external or internal reciepents. Outlook VBA and Custom Forms 1
P VBA to assign category on calendar item does not work ?? why ?? Outlook VBA and Custom Forms 5
S assign task programmatically Outlook VBA and Custom Forms 2
C Cannot assign a task from a public folder? Outlook VBA and Custom Forms 4
C Assign To and CC list while using Redemption.dll library Outlook VBA and Custom Forms 10
C How to assign icon to a button in Outlook Add-in Outlook VBA and Custom Forms 1
S User Defined Fields adding new value (2) Using Outlook 0
C Copy Outlook contact field value to another field Outlook VBA and Custom Forms 1
M Outlook 2013 Replace Subject with Conversation (a "hidden" value). Outlook VBA and Custom Forms 0
S Find a cell value in excel using outlook vba Using Outlook 1
S SendFromAccount - Problem trying to test existing value in open email Outlook VBA and Custom Forms 2
N Lookup Value From Excel and Reply With Matching Value Using Outlook 0
R User Defined Fields adding new value Using Outlook 3
C Copy Cell value from Excel and paste into current email Outlook VBA and Custom Forms 10
B Conditional Formatting:How to use >1 value in a filter Using Outlook 7
M Copy "To" Address Value from a Newly Created Email to the "To" Address Field of Custom Form Using Outlook 4
J How to show the "value" of a user-defined Account field in a Contact Record BCM (Business Contact Manager) 2
D Custom Form - Show field-filled doc a or b based on value of field x Outlook VBA and Custom Forms 4
S Outlook code to validate textbox value Using Outlook 1
Similar threads


















































Top