View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
kdp145[_4_] kdp145[_4_] is offline
external usenet poster
 
Posts: 1
Default Prompt for filename in excel macro VBA


put this after the selection.copy statement

filename = Application.GetOpenFilename("Excel files (*.xls), *.xls")
Windows(filename).Activate

this will prompt the user to select an excel file from the Open file
dialog box and activate whichever file the user selects


--
kdp145
------------------------------------------------------------------------
kdp145's Profile: http://www.excelforum.com/member.php...o&userid=29594
View this thread: http://www.excelforum.com/showthread...hreadid=521703