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: 1
Default Variable with no Value inside Macro Equation??


I am trying to setup a code that dumps data from one sheet to another.
The user inputs the row number of the data, then the data in that row
is tranferred. How do I get VB/Excel to recognize the value of my
variable in the equations?? My code below is not working.


Code:
--------------------
Sub TransferInfo()

RNum = InputBox("Enter the row number of the new unit")
StationName = "='Master List (Base)'! & RNum & 'E'"

Sheets("DataInput").Select
Range("C5").Select
ActiveCell.FormulaR1C1 = "='Master List (Base)'! & StationName"
--------------------



Thanks.


--
TEAM
------------------------------------------------------------------------
TEAM's Profile: http://www.excelforum.com/member.php...o&userid=22810
View this thread: http://www.excelforum.com/showthread...hreadid=375720

 
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
Two unknown variable equation John Excel Worksheet Functions 6 March 10th 06 08:51 PM
Average For Variable-length Column (w N/A value inside) Billabong Excel Programming 0 October 4th 04 04:04 AM
Average For Variable-length Column (w N/A value inside) Billabong Excel Programming 1 October 4th 04 03:33 AM
variable inside a formula? Phil Excel Programming 5 July 28th 04 12:04 AM
using variable inside activeCell reference call dabith[_7_] Excel Programming 2 June 19th 04 08:02 PM


All times are GMT +1. The time now is 01:24 AM.

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"