Hi all.
I'm a pretty new VBA user, hoping to appeal to you gurus out there for some help.
I'm using the following code to export an access query to excel, open an existing macro enabled workbook which contains a macro i need to modify the exported query, run that macro on the export, then import the modified query back into access as a new table. It works every other time. but alternately, the line "ActiveWorkbook.Close SaveChanges:=True" throws a run time error. I don't really understand why it works every odd run and fails every even run. Any help would be appreciated!
Here's my Access VBA code:
![]()
Please Login or Register to view this content.
Bookmarks