View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
drdavidge drdavidge is offline
external usenet poster
 
Posts: 8
Default popup box asking to select an open book/sheet?


drdavidge wrote:
hey guys, is there a way i can program a macro to display a box with
all the currently opened excel files and sheets?

basically i have a macro that will prompt you for a file, open it, and
then do some formatting on this file. i have a nother macro for a
separate sheet that will do vlookup's on this new (formatted) sheet
that is already open, but i dont know how to specify which open sheet
to do the vlookups in. i open up the sheet by doing this:

MsgBox "Please select the MRP file"
mrpFilename = Application.GetOpenFilename("Excel files (*.xls), *.xls")
Set mrpBook = Workbooks.Open(mrpFilename)

then it does the formatting.. etc.



is there an easy way to do this?




interesting ideas guys, thanks. im wondering if there may be an easier
way to do this since i give the filename i open a variable name for
both the filename and the workbook. the book i am opening only contains
one sheet. any ideas how to do a vlookup on that?