I'm running into problems with trying to create a macro and I was needing some advise... I think it would be better if it was done in VBA, but I'm not familiar with VBA... any help would be appreciated!
I'm trying to create a macro that will do the following...
1. Prompt the user to browse for an excel file.
I could use the "Run Command" -> "Import", but I'm trying to automate this process to keep the user interaction down.
2. Import the excel file (2 worksheets) into 2 table in access. The worksheets first row is a header row.
This is easy to do using the "Import" command to bring up the Import Wizard, but since I want to stay away from the wizard, I believe that I should use the "Transfer Spreadsheet" command". The problem I run into here, is that I'm required to put the filename and path into the "File Name" property. I am not sure how to set this up since I want to user to browse for the file.
Should I use VBA or can i do this with macros? Are there better commands to use or a better method to do this?
If i have to use VBA, can anyone help me or give me some further advice...
Thanks for any help you can offer.
I'm trying to create a macro that will do the following...
1. Prompt the user to browse for an excel file.
I could use the "Run Command" -> "Import", but I'm trying to automate this process to keep the user interaction down.
2. Import the excel file (2 worksheets) into 2 table in access. The worksheets first row is a header row.
This is easy to do using the "Import" command to bring up the Import Wizard, but since I want to stay away from the wizard, I believe that I should use the "Transfer Spreadsheet" command". The problem I run into here, is that I'm required to put the filename and path into the "File Name" property. I am not sure how to set this up since I want to user to browse for the file.
Should I use VBA or can i do this with macros? Are there better commands to use or a better method to do this?
If i have to use VBA, can anyone help me or give me some further advice...
Thanks for any help you can offer.