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: 3
Default Adding new sheet's cell value to old formula

I have a summary sheet and I want to add data sheets so that they reference
into the summary sheet automatically. I made a command button that accesses
a macro to create, name, and move the sheet where it needs to go. Now all I
have to do is add the values from the new locations to the summary sheet's
formula.

Here's shat I tried:

Range("C13").Select
ActiveCell.FormulaR1C1 = ActiveCell.FormulaR1C1 + " +
'&sheetname'!R[5]C[3]"

where sheetname is the string variable associated with the name of the new
sheet. Problem is that excel won't accept a variable value for a sheet name.
I know there's got to be a better way to do this. Any hints?
 
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
can i use a cell value as another sheet's cell reference kb7dfs Excel Worksheet Functions 4 December 28th 05 04:26 AM
Tab Name Shown In Another Sheet's Cell jbtenor1 Excel Discussion (Misc queries) 1 October 26th 05 08:52 PM
(macro, formula,...) To Copy columm in various sheet's pmarques Excel Discussion (Misc queries) 0 July 14th 05 12:25 PM
adding a formula in a cell but when cell = 0 cell is blank Mike T Excel Worksheet Functions 5 May 31st 05 01:08 AM
Sheet's Name Martín2626 Excel Programming 8 January 29th 04 02:51 PM


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