Outlook 2007 Macro to Email Field

Status
Not open for further replies.
I did:

txtSearch = "from:" & strFilter & "OR to:" & strFilter

and it did not work.....the one: txtSearch = "from:" & strFilter worked great

is there anything to fix?
 
Once again, thank you so much!! It works pefectly!!

It's nice to learn from someone who knows the area so super well!!

Thank-you!!!
 
I believe based on your input that I cannot add a new menu to an outlook contact form and can only add the macros to the quick access bar.

Under the quick access bar, whatever I scroll to it, is just a symbol and unless you push your mouse on the symbol, you don't know what the symbol clicks to.

And I also assume there is no way to add a toolbar to the outlook form, so can do what I an do on the quick access bar. Correct?I

s there any way to show a symbol on the quick access bar of the contact as a text symbol, which is what you do on the toolbar of the opening of outlook?
 
Correct, for Outlook 2007. AFAIK, Outlook 2007 does not let you use labels on the QAT.
 
A new question.

I created an email template where the subject is "From (my name)".

And in other email templates I either did the same, or had a different subject line.

But for some reason if I hit on the New button for an email that is not one of my templates, or I use any of my templates, whatever is in the subject line, when it is sent, it automatically adds the words "From (my name)" before any of words a put in the subject line or come from template.

So I how do I fix this so it doesn't add anything to the subject other than if I use the template what is in the subject, but nothing gets added.

I very appreciate your help.
 
Are you using a VBA macro to tweak the subject line?
 
I have the macro you gave me for purposes of the sending anemail per an email template and adding the email address of the contact that it gets clicked from.

I created 16 macros and the only difference is the first line "Public Sub" where I changed the title for each macro and under the Function line below each "End Sub", I changed the words"GetCurrentItem( )" for each Function to "GetCurrentItem1()", then the next one "GetCurrentItem2( )", so I added a different number to each Function words as that was some problem in the beginning when it was debugged to show the area that was not affective.

And as to the 16 macros re the sending an email per an email template and adding the email address of the contact that it gets clicked from,they all in the Module 1, and there is the line _____________________ below each End Sub and each End Function.

And 14 of the email templates have the same subject line which is "From my name", and two them have a different same subject line.

And it’s the subject line "From my name " that is in the 14 email templates that automatically comes in when sent, even when I create the e-mail form"New" and not based on any template or from a macro re the template.

Please see my next post for the additional info.
 
And just so you know, under your instructions re the email search, the macro for that is in a separate Module 2, and I created two more macros based your advice in Module 3 and Module 4 where the search is both "to and from" and a second one where the search is just the

"to", and all of those work .

And then I saw under the list of the 4 Modules as the bottom of the list, there is a something that is titled: "ThisOutlookSession" and the macro to the right is:

Private Sub Application_ItemSend(ByVal Item As Object,Cancel As Boolean)
If(Left(Trim(Item.Subject), 11)) <> "RESTRICTED " Then
Item.Subject ="From my name " + Item.Subject
End If

End Sub

And the words : "From my name" is what automatically is added to subject line in each email whensent. I don't why that was created and if it is just what I learned before to adjust the Outlook default email form, I don't need it. So should I just delete it,and if so, how do I delete it? And is there something else to do as well to fix?

Thanks very much.

 
if you don't need it, select all and delete it. :) Apparently at some point you used it to look for a keyword in the subject and if found, to tag it from you.
 
A couple of tips - 1) you could put all of the macros into one module. I use multiple modules to help me keep things straight but in a case where i had 16 identical macros, I'd probably use 1 - 4 modules 2) if you put the function in just once, all macros should be able to use it.
 
Thanks very much.

By deleting that macro, that solved the problem.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
L Outlook 2007 - Macro Re Search Using Outlook 16
L Outlook 2007 Macro to Contact From a Field Using Outlook 3
L Outlook 2007 Macro Save Contact Using Outlook 10
L Outlook 2007 Macro Reply to E-mail Using Outlook 16
L Outlook 2007 Macro Search Contacts Using Outlook 9
L Outlook 2007 Macro to LinkedIn Using Outlook 3
L Outlook 2007 Macro Open Contact Folder Using Outlook 7
L Macro to Open a Specific Word Document - Outlook 2007 Using Outlook 17
L Outlook 2007 Macro For Views Using Outlook 10
L Outlook 2007 Macro to Run a Script From a Contact Form Using Outlook 41
L Outlook 2007 Macro to Add Text to a Contact Field Using Outlook 10
F Help with Outlook 2007 Macro Please! Using Outlook 4
D outlook 2003/2007 macro query Using Outlook 2
O Macro for creating hyperlinks in Outlook 2007 Using Outlook 3
S Outlook 2007 Macro for replying to an e-mail. Outlook VBA and Custom Forms 1
J Can't run macro Outlook 2007 that was created in Word 2007 Outlook VBA and Custom Forms 1
I Creating an Outlook 2007 macro that attaches a signature to new me Outlook VBA and Custom Forms 1
L Help for writing an Outlook 2007 macro Outlook VBA and Custom Forms 7
D Insert Text via Macro in Outlook 2007 Outlook VBA and Custom Forms 2
G Outlook 2007 Macro: Paste - Paste Special - Unformatted Text Outlook VBA and Custom Forms 9
C After Office 2007 SP2 install - Outlook 2007 macro no longer worki Outlook VBA and Custom Forms 11
R Anyone have a sample macro for Outlook 2007 (setting the zoom)? Outlook VBA and Custom Forms 1
S Outlook 2007: automating form with macro Outlook VBA and Custom Forms 2
S How to create a macro to insert a signature in Outlook 2007 Outlook VBA and Custom Forms 1
D Outlook 2007 Recovering E-Mails Using Outlook 0
W Transfer Outlook 2016 autocomplete file to Outlook 2007 Using Outlook 1
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
S Outlook 2007 - Automatic purge fail Using Outlook 0
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Verwendung von Outlook 2007 Using Outlook 0
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
S outlook 2007 calendar search Using Outlook 6
B Migrate Outlook 2007 to Office 365 Using Outlook 3
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
R Outlook 2007 only loads some appointments Using Outlook 0
C Move Outlook 2007 to new PC with Outlook 365 Using Outlook 3
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
B Server errors Outlook 2007 Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1
S Outlook 2007 printing wrong email address at top of page Using Outlook 8
M Configure outlook 2007 to accept digital signatures Using Outlook 2
D Outlook 2007 crashes when opening an email Using Outlook 2
R New chap saying hello and needing advice on Outlook 2007 thumbnails Using Outlook 3

Similar threads

Back
Top