RE: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard

2014-09-04 Thread Nitin Balodi
$$ Assign already open workbooks name to variables using wildcard To: excel-macros@googlegroups.com So, your macro opens all of the (5) workbooks in the folder.You can still use the loop I've described and use if/elseif/endif like: Sub ListOpenWorkbooks() Dim wb As Workbook Dim file1,

Re: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard

2014-09-04 Thread Paul Schreiner
e places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley - From: Nitin Balodi >To: "excel-macros@googlegroups.com" >Sent: Thursday, September 4, 2014 8:12 AM >Subject: RE: $$Excel-Macros$$ Assign alrea

RE: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard

2014-09-04 Thread Nitin Balodi
: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard To: excel-macros@googlegroups.com I'm not sure what you're expecting with the wildcard. perhaps you could give specific examples? The Workbook object contains all of the open workbooks. You can loop through th

Re: $$Excel-Macros$$ Assign already open workbooks name to variables using wildcard

2014-09-04 Thread Paul Schreiner
I'm not sure what you're expecting with the wildcard. perhaps you could give specific examples? The Workbook object contains all of the open workbooks. You can loop through the Workbook object and save the filenames in a variable or array, like: Option Explicit Sub ListOpenWorkbooks() D