tylersontag
Registered User.
- Local time
- Today, 04:04
- Joined
- Sep 2, 2009
- Messages
- 19
Hey all,
I've made a macro that automates a load process and i'm trying to figure out a way to automate the running of this macro
I've been working with a VBS file, but not with much luck. Its pretty barebone:
Any ideas? i'm executing the file with the windows command cscript... should i use a different compiler? I notice i'm using alot of implicit declarations, do i need to be more explicit? I'm sure its something simple but i'm having trouble tracking down a soultion via google.
Thanks!
I've made a macro that automates a load process and i'm trying to figure out a way to automate the running of this macro

I've been working with a VBS file, but not with much luck. Its pretty barebone:
Code:
strFile = "C:\MDB_file_Path\MDB_File.mdb"
Set objAccess = GetObject(strFile, "Access.Application")
objAccess.DoCmd.RunMacro "AutoLoad"
objAccess.Quit
Set objAccess = Nothing
Any ideas? i'm executing the file with the windows command cscript... should i use a different compiler? I notice i'm using alot of implicit declarations, do i need to be more explicit? I'm sure its something simple but i'm having trouble tracking down a soultion via google.
Thanks!