Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Variable to formula.

Howdy all.
A quick and simple question.(My brain isn't working 2day)
I have a workbook file name defined as a variable.
I've tried to use the variable with-in a formula, and you
guessed it, it didn't work.
How would i be able to use the value defined in a
variable, with-in a formula?
Your assistance is !greatly! appreciated.

Cheers from the "Land Down-under" :-)

Russell.
  #2   Report Post  
Posted to microsoft.public.excel.programming
acw acw is offline
external usenet poster
 
Posts: 19
Default Variable to formula.

Russell

wbk = "book2"
ActiveCell.Formula = "=[" & wbk & "]sheet1!c2"
Tony
-----Original Message-----
Howdy all.
A quick and simple question.(My brain isn't working 2day)
I have a workbook file name defined as a variable.
I've tried to use the variable with-in a formula, and you
guessed it, it didn't work.
How would i be able to use the value defined in a
variable, with-in a formula?
Your assistance is !greatly! appreciated.

Cheers from the "Land Down-under" :-)

Russell.
.

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
variable formula LP23294 Excel Worksheet Functions 4 October 27th 09 07:46 PM
Variable VBA Max Formula Gizmo Excel Discussion (Misc queries) 2 June 6th 08 06:12 AM
Variable within a formula Tom Melosi Excel Worksheet Functions 4 August 21st 07 04:07 AM
Using a variable in a VBA formula Colin Vicary Excel Discussion (Misc queries) 3 November 8th 05 11:39 AM
Using a second variable within a formula... Ed Anton Excel Discussion (Misc queries) 2 February 18th 05 11:51 AM


All times are GMT +1. The time now is 07:55 PM.

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"