I think you can import from hidden sheets in 2007...at least, I think I tried it and it worked fine. For my need, they have to be hidden for the users who use the sheet, but when it comes time to import I guess I could go in and unhide each of the five sheets manually (or programmatically). No biggie there.
Here is what I am using code wise to list the sheets found in a certain directory in a listbox on an access form, then I have a click that imports them....this is easy when they are simple .csv files (which I am also thinking, hmmm could I just do a programmatic save-as in excel and save the hidden sheet ONLY as a .csv file in this directory, because when that happens, ONLY the non-blank rows come in...perhaps .csv is the way to go?? Just brainstorming.)
Now on import_click() I have the following for importing .csv files (this is all code from another database of mine I am implementing for this new database).
This will probably do everything I need - it works fine for my old dbase except:
1. It imports into separate tables
2. I need help with getting the worksheet from Excel into a .csv file
or somehow just listing the workbooks and then importing the ONE hidden sheet without the blank lines
(preferred).
Bookmarks