Learnbuddy
New Member
- Joined
- Nov 25, 2015
- Messages
- 5
Hello all,
I have created an Excel spreadsheet that works like this:
a user clicks a .VBS file which opens my Excel spreadsheet (which stays invisible) and runs a specific macro
a calendar pops up and the user clicks on a date
A particular column within the spreadsheets resets to default SQL statements I created
The new user selected date gets injected into those SQL statement
The SQL statements get copied onto the users clipboard.
After this the user manually opens Outlook, clicks on a particular search folder named "Virtual Inbox", opens the SQL filter dialog box, pastes the contents of their clipboard, clicks ok and clicks ok.
Their emails are then filtered to their desire.
I would like the manual steps automated with VBA. I am uncertain if this portion can be done in Excel 2013, or if it needs to be done in Outlook 2013 VBA. I was thinking I could add a quick access toolbar icon in Outlook that the user would click which would call my Excel Macro to copy the data in their clipboard, and then it would run an Outlook macro to paste it into the SQL filter box of the particular folder.
This part is more difficult for me because I haven't found a record macro button in Outlook 2013, so I'm unsure how to activate or call to the SQL filter box.
The attached or following image is does not contain my code, but is simply an image of the SQL filter box I am referring to.
I have created an Excel spreadsheet that works like this:
a user clicks a .VBS file which opens my Excel spreadsheet (which stays invisible) and runs a specific macro
a calendar pops up and the user clicks on a date
A particular column within the spreadsheets resets to default SQL statements I created
The new user selected date gets injected into those SQL statement
The SQL statements get copied onto the users clipboard.
After this the user manually opens Outlook, clicks on a particular search folder named "Virtual Inbox", opens the SQL filter dialog box, pastes the contents of their clipboard, clicks ok and clicks ok.
Their emails are then filtered to their desire.
I would like the manual steps automated with VBA. I am uncertain if this portion can be done in Excel 2013, or if it needs to be done in Outlook 2013 VBA. I was thinking I could add a quick access toolbar icon in Outlook that the user would click which would call my Excel Macro to copy the data in their clipboard, and then it would run an Outlook macro to paste it into the SQL filter box of the particular folder.
This part is more difficult for me because I haven't found a record macro button in Outlook 2013, so I'm unsure how to activate or call to the SQL filter box.
The attached or following image is does not contain my code, but is simply an image of the SQL filter box I am referring to.
