Hi
I have a macro in excel that, creates an email in outlook. The issue I have is, this spreadsheet can be used by multiple people and I want their corresponding email signature in the email when they send it
The signature code I have is :
[SigString = "C:\Documents and Settings\" & Environ("username") & _
"\Application Data\Microsoft\Signatures\]
after the signatures path i need to do a wildcard that will pick up the users signature. I know the file I want ends in .htm
can someone show me how i can use wildcard characters to pick up any users email signature.
It sounds easy, but I cant get my head round it!
Thank You
Last edited by cooket4; 02-03-2012 at 09:53 AM.
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
Hi
What if they have more than one htm signature?
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
Hi
There will only be 1 .htm file, ist our company policy to only have 1
Please put your code in tags and I'll post the solution![]()
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
I have added tags havent I? This is my first post, and I couldnt find the # Roy was talking about - never mind found the #!
Last edited by cooket4; 01-27-2012 at 09:04 AM.
Hi
I have a macro in excel that, creates an email in outlook. The issue I have is, this spreadsheet can be used by multiple people and I want their corresponding email signature in the email when they send it
The signature code I have is :
after the signatures path i need to do a wildcard that will pick up the users signature. I know the file I want ends in .htmSigString = "C:\Documents and Settings\" & Environ("username") & _ "\Application Data\Microsoft\Signatures\
can someone show me how i can use wildcard characters to pick up any users email signature.
It sounds easy, but I cant get my head round it!
Thank You
Ok you need:
SigString = "C:\Documents and Settings\" & Environ("username") & _ "\Application Data\Microsoft\Signatures\" Sigstring = Sigstring & Dir(sigstring & "*.htm")
Click the * below to say thanks
Girls sleep with guys who use photoshop, but marry the ones who work with Excel
Corduroy pillows: They're making headlines!
Did you mean: recursion
http://www.google.com/search?hl=en&q=recursion
I was so close! Thanks It worked a treat
I got a toughie (well I think it is) next. Ill start a new thread.
Thank You
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks