Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Drop-Down List to Choose File to Open

I would like to be able to choose a filename from a drop-down combo bo
and then open the file by clicking on a button with a macro link.

The problem is when I tried recording the macro, I am only able t
record one file name and I would like to be able to open up any fil
selected, so that it can be pasted into a sheet in the curren
workbook.

Here is what I have so far:

Sub Button7_Click()
Range("N3").Select
Selection.Copy
ChDir "I:\Inv\H R"
Workbooks.Open Filename:= _
"I:\Inv\H R\CH(March).xls"
Cells.Select
Application.CutCopyMode = False
Selection.Copy
Windows("Copy of K P M v4.xls").Activate
Sheets("data").Select
Cells.Select
ActiveSheet.Paste
Windows("CH(March).xls").Activate
ActiveWindow.Close
Sheets("PM").Select
Range("K20").Select
End Sub

Any suggestions on how to make this work? Please be as specific a
possible, because I'm new at this. Thanks

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down List w/ Values Pop Automacailly when choose entry from l CYNTHIA Excel Discussion (Misc queries) 8 February 15th 08 08:04 PM
choose a product from a drop down list i need it to insert a price Barnzy Excel Worksheet Functions 6 April 12th 07 04:48 PM
How do I choose from the drop down list in excel Davida Excel Discussion (Misc queries) 7 September 8th 05 05:17 PM
How do I insert A drop down dialog box as a 'list to choose from'? Rochelle B Excel Worksheet Functions 2 May 1st 05 09:49 PM
Drop-Down List to Choose File to Open tbchief Excel Programming 0 May 28th 04 08:14 PM


All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"