LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Input filename at start of macro

I have a worksheet with data that needs to be copied to several different
workbooks. I have a macro that will copy the data correctly to one specific
workbook. What I need is to start the macro so that it asks me the workbook
filename. It then needs to be able to copy to that specific workbook (which
will already have been opened).
I don't know much VBA but am imagining that I need to name a variable with
the filename that the user inputs, then use that variable as the reference in
all of my copy and paste commands.
Does this make any sense? If so, how do I program VBA to ask for a
user-inputted filename?

Thanks!
--
Sara
 
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
Add a input box to ask for a filename to macro Debbie Excel Discussion (Misc queries) 1 March 15th 10 09:45 PM
run macro with input msg based on cell input Janelle S Excel Discussion (Misc queries) 0 January 20th 08 05:23 AM
Can I start a macro based on cell input value teetime Excel Programming 0 December 1st 05 01:23 AM
Start Excel and run a macro on a given filename? JJ \(UK\) Excel Programming 10 December 1st 04 04:01 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 09:51 PM.

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

About Us

"It's about Microsoft Excel"