LizJohnson
Registered User.
- Local time
- Today, 11:17
- Joined
- Mar 13, 2014
- Messages
- 98
I set up an Access database. I am going to be getting up loads from our IT department that I will have to upload into my Access database on a daily basis. This is going to upload tax information that the tax payer is going to file on-line. The upload will be from an Excel file to Access.
When the developer created his database, he used different headings for his column names than what I am using for my Access fields. Therefore, instead of changing my Access database to match his fields, I want to just create a Macro in Excel that will delete certain columns that I do not need and then rename the columns to match my Access fields. This way, all I have to do each day is run this Macro.
I created this Macro in Excel and saved the Macro in a different Excel sheet so that I could open this sheet each day that would have the Macro.
I tested this with my first test data and it is running perfectly. It is deleting the correct columns and changing the name.
When I test this with my 2nd data sheet, it is stopping at my first name change macro. I've checked the name that the developer is using and it is the same spelling, etc. Nothing has changed for his layout of information.
Any ideas why this won't work on a different spreadsheet?
This is the line that the Macro get hung up on.
Range("Table134[[#Headers],[LICENSE_NUMBER]]").Select
When the developer created his database, he used different headings for his column names than what I am using for my Access fields. Therefore, instead of changing my Access database to match his fields, I want to just create a Macro in Excel that will delete certain columns that I do not need and then rename the columns to match my Access fields. This way, all I have to do each day is run this Macro.
I created this Macro in Excel and saved the Macro in a different Excel sheet so that I could open this sheet each day that would have the Macro.
I tested this with my first test data and it is running perfectly. It is deleting the correct columns and changing the name.
When I test this with my 2nd data sheet, it is stopping at my first name change macro. I've checked the name that the developer is using and it is the same spelling, etc. Nothing has changed for his layout of information.
Any ideas why this won't work on a different spreadsheet?
This is the line that the Macro get hung up on.
Range("Table134[[#Headers],[LICENSE_NUMBER]]").Select