![]() |
vba/macro recognizing other worksheets open
How can I have the macro / vba prompt me for the name of the workbook
and sheet each time I run it? Both the active sheet and the one I would be pulling from will be open, but the one I am pulling from will change in name and its sheet names will be different each time. |
vba/macro recognizing other worksheets open
hi
use variables with the inputbox. dim wb as workbook dim ws as worksheet wb = inputbox("Enter the name of the workbook.") ws = inputbox("inter the name of the worksheet.") that's the therory. since you didn't post any code, i not exactly sure how to work it in. play with it. Regards FSt1 " wrote: How can I have the macro / vba prompt me for the name of the workbook and sheet each time I run it? Both the active sheet and the one I would be pulling from will be open, but the one I am pulling from will change in name and its sheet names will be different each time. |
All times are GMT +1. The time now is 02:53 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com