I need to edit a couple of fields of a record in excel sheet, following certain operations in access.The code I am using follows (VBA access).
This code does not work: I get a compile error, "variable not defined", pointing to LookIn:=xlValues.![]()
Please Login or Register to view this content.
Note that:
1) The excel table is linked to the access app, but I cannot edit the linked file directly: Starting from version 2003, Microsoft removed the possibility of editing linked excel files from access due to "legal reasons". So I have to work on the excel file itself.
2) I could import the file, make the changes and re-export the file: but I cannot re-export to the same file, only to a new one, so the process becomes cumbersome
3) The Microsoft Excel 16.0 Object library is already included
I am using Access and Excel in Office 2016.
What am I missing in trying to operate on excel file from Access VBA? Thank you for any suggestion.
NOTE: this post is also open in ExcelFox.com, http://www.excelfox.com/forum/showth...rom-access-vba
Bookmarks