Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel-VB Macro Variables

I have not worked with macros but I think I could use one to really speed
things up. How do I assign a variable in VB to pick up the name of an Excel
file that changes each time I open a new file? I have to open many files,
and copy various cells to another spreadsheet. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Excel-VB Macro Variables

Hi Eunice,

See Ron de Bruin at:

http://www.rondebruin.nl/copy3.htm

for sample code and techniques.


---
Regards,
Norman



"Eunice W" wrote in message
...
I have not worked with macros but I think I could use one to really speed
things up. How do I assign a variable in VB to pick up the name of an
Excel
file that changes each time I open a new file? I have to open many
files,
and copy various cells to another spreadsheet. Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel-VB Macro Variables

Thank you Norman, looks like just the ticket. How ever did you locate this!

"Norman Jones" wrote:

Hi Eunice,

See Ron de Bruin at:

http://www.rondebruin.nl/copy3.htm

for sample code and techniques.


---
Regards,
Norman



"Eunice W" wrote in message
...
I have not worked with macros but I think I could use one to really speed
things up. How do I assign a variable in VB to pick up the name of an
Excel
file that changes each time I open a new file? I have to open many
files,
and copy various cells to another spreadsheet. Any ideas?




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
macro calling another macro + variables yo Excel Discussion (Misc queries) 2 April 5th 06 04:36 PM
Calling Macro - Will it take variables? Andibevan[_2_] Excel Programming 3 June 14th 05 03:28 PM
Passing Variables to another macro Jeff Excel Programming 3 January 16th 05 03:41 AM
Passing variables from Outlook Macro to Excel Macro [email protected] Excel Programming 2 January 7th 05 10:07 PM
passing variables from an excel macro to a powerpoint macro jake Excel Programming 1 December 11th 03 02:36 AM


All times are GMT +1. The time now is 09:19 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"