LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default Relative Value Macros

I have a line of code similar to the below:
Workbooks.Open ("C:Test.xls")

Later in the same macro I have the following code:
ActiveCell.FormulaR1C1 = "'Test"

I want to be able to replace the "C:Test.xls" with the next file in this
process and to also use the file name to populate the information in the
second line of code.

 
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
Relative Reference Help Macros PhillipsHQ Excel Worksheet Functions 5 August 18th 06 03:29 PM
Macros - Relative cells in Excel BeardT Excel Programming 4 October 14th 04 09:55 PM
Relative References for macros Grace[_4_] Excel Programming 5 June 10th 04 06:09 PM
Excel Relative Macros llockler Excel Programming 1 February 2nd 04 08:44 PM
Relative Cell References in Macros Barry Staples Excel Programming 4 January 25th 04 07:44 AM


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