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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create tables from excel using VBA

Status
Not open for further replies.

lewatkin

Programmer
Mar 8, 2002
91
US
I have a rather large excel spreadsheet that is the schema of a database, no data. There are several tables and hundreds of fields etc. It has the table name, field name, field description, type and null information in different columns. Isn't there a way that I can use this information to create my tables automatically? I have searched and searched and knowing me, I have searched for the wrong keywords, but if anyone could provide any assistance that would be great. Thanks to all in advance
 
Yes you could generate the tables with that spreadsheet.

It's hard to know exactly how to code it without seeing the layout of your data though so post it up, also have a read up on Tabledefs in VBA help and on this forum as a starting point.
 
Hey - Thx for your reply. I just got it figured out. Probably not the way most would - I ended up transposing the rows into columns onto different worksheets, then manually imported those sheets - viola, tables created with minimal typing.

Thanks for the response

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top