vba/macro recognizing other worksheets open

  • Thread starter Thread starter dennis.mccarthy
  • Start date Start date
D

dennis.mccarthy

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top