List all Tab names in Excel workbook
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi - is there a way to import all the names of sheets within a workbook? I am using the directory input to pull in a bunch of files and unfortunately all of the workbooks have different tab names, based on the month-year (and they're not even consistent, some are JUNE-16 or JUN-18 for example).
Wondering if there is a macro somewhere that can read all sheet names from multiple workbooks.
thanks!
- Labels:
- Best Practices
- Custom Tools
- Preparation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Worksheets? Definitely! Take a quick look at your input data options and you'll notice at the bottom of the window there's an option to "import only the list of sheet names"
If you need to then bring in all of your data from all of your worksheets you can use a Dynamic Input Tool. Try this video for a step-by-step guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @jenner85
In order for this to work with a directory tool, first change the FullPath field like this:
[FullPath] + "|<List of Sheet Names>"
Then, use this field in a Dynamic Input tool changing the entire file path.
In your data source template, make sure to
- select <List of Sheet Names> as the Table or Query
- output the file name (so you can match the worksheets to their file
- check that the first row contains data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Kenda thank you - It is working for about half my files, the other half are coming up like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @apathetichell @messi007 I tried to import from all my workbooks using import list of sheet names and it is only working for some of the files:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Could you share a sample of your data and the workflow please.
It will help to fix the problem.
Best Regards,
