![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 75
|
does anyone out here know how to put a variable into a linked formula?
Eaxample: ActiveCell.FormulaR1C1 = _ "=+'[Estimate Source New Item 1.xls]Estimate (1)'!R9C3" what I want to be able to do is reference different file names in to link the cells together from workbook to workbook. Any one have any ideas? |
|
|
|
|
|
#2 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
if you will use VBA to change formula then it is just like you wrote:
strfile="[Estimate Source New Item 1.xls]" ActiveCell.FormulaR1C1 ="='" & strfile & "Estimate (1)'!R9C3" isn't it? regards suat |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 75
|
You are right, thanks allot.. opened my eyes a bit there. New to VBA so I am struggling with the code.
|
|
|
|
|
|
#4 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
Nice to hear that it is working.
You can visit http://www.thewordexpert.com for VBA and office applications help if you need. Subscribe for newsletter then you can follow our VBA Functions in Excel articles series, first newsletter will be posted in a few days. Suat [ This Message was edited by: smozgur on 2002-03-14 13:01 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|