pdvsa
asked on
Run a script after export to excel
Experts,
I have button on a form that exports data in an excel forma to a folder.
After I export the data, I right click the file and choose to the script.
I want to automate the script from within Access instead of right clicking the file and running the script.
Basically I want to remove this extra step and have it all inside of access.
How can I do this?
Not sure if my explanation is detailed enough.
Please feel free to ask a question.
thank you
I have button on a form that exports data in an excel forma to a folder.
After I export the data, I right click the file and choose to the script.
I want to automate the script from within Access instead of right clicking the file and running the script.
Basically I want to remove this extra step and have it all inside of access.
How can I do this?
Not sure if my explanation is detailed enough.
Please feel free to ask a question.
thank you
ASKER
Pat, yes I want to run the code from in Access. I have attached the script It is a .vbs. Should I place that code where you state above?
Export-to-Outlook-Script.vbs
Export-to-Outlook-Script.vbs
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oh I see. An expert way to do that. Will give it a try.
Thank you
Thank you
ASKER
Pat,
Sorry to pester you once again.
Possibly you could provide me a solution to the "variable not defined" error I get on this line:
strFil = WScript.Arguments(0)
thank you Pat.
Sorry to pester you once again.
Possibly you could provide me a solution to the "variable not defined" error I get on this line:
strFil = WScript.Arguments(0)
thank you Pat.
ASKER
Hi Pat, thank you for the follow up. I sincerely appreciate it. Unfortunately, that did not fix the issue. Wondering if you have any other ideas to fix the "variable not defined" error? I might post another question if this might be a little more complicated than I assume. I did try to add other scripting references. Acteually I added all the ones I could find but still had the error. Not sure if I need to define this Wscript variable it in the first line between the ().
thank you
thank you
Variables should always be defined.
ASKER
Ok. Thank you Pat...
Open in new window