LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Member
 
Posts: 70
Default Loop through named workbooks

I'm working on some hypothetical code, but I imagine it will come in handy somewhere down the line. Is it possible to list the names of workbooks and then loop through all the names to perform an action on each?

Let's say I have three workbooks named "Workbook 1", "Workbook 2" and "Workbook 3"

Is there a way I can assign each of those names to a variable, or assign them to an array, and then tell excel to loop through each of them and tell me the name of the workbook in a message box?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA loop to create named .csv files for all worksheets and workbooks in a folder KQBats Excel Programming 11 May 10th 12 04:47 AM
Loop Until out of named range [email protected] Excel Programming 5 April 3rd 07 05:34 PM
named ranges in a For Loop [email protected] Excel Programming 6 December 22nd 05 02:58 PM
loop through all named ranges Bert[_3_] Excel Programming 4 June 19th 04 03:54 PM
Excel VBA - loop columns named AA, AB..etc Tobias[_2_] Excel Programming 3 April 19th 04 01:26 PM


All times are GMT +1. The time now is 08:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"