Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick question - Transfer Excel to Access

Status
Not open for further replies.

101287

MIS
Apr 8, 2006
189
US
When I execute a macro to load an excel file spreadsheet, it generate an error table name ....error.

Is there anyway that I could read the objects and search for the name and automatically (with a macro) and delete it.

Please advise and thank you for the guidance.

Luis
 



Hi,

Search & Destroy in Excel, based on the name of what kind of object?



Skip,

[glasses] [red][/red]
[tongue]
 
Don't understand your answer. I thought that I can use the DeleteObject method or the Drop command in sql. However, don't know how to start with the VBA code.

Probably I did not provided enough information or detail in my question.

Thank you for your time and assistance.
 



Are we talking about DATA or OBJECTS???

I thought that there was an Excel object that you, for some reason, want to DELETE.

"Is there anyway that I could read the objects and search for the name and automatically (with a macro) and delete it."

I dunno, I thought that it might shed some light on the issue if we knew what kind of object we were going to delete; you know, it has a reference path and must be properly quallified etc.

Also, what line of code is generating this error?

Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top