LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Adding new sheet's cell value to old formula

Just for completeness. there was a typo

ActiveCell.FormulaR1C1 = ActiveCell.FormulaR1C1 & _
" + '" & sheetname & '!R[5]C[3]"

should have been

ActiveCell.FormulaR1C1 = ActiveCell.FormulaR1C1 & _
" + '" & sheetname & "'!R[5]C[3]"

--
Regards,
Tom Ogilvy


"Eric Silva" wrote in message
...
I don't know what I did but it suddenly started working just right.

Thanks a
lot for the help, Tom. I read some of your other posts before I put this

one
up and you're both knowledgeable and helpful. Keep it up! I might have
another question someday.

"Eric Silva" wrote:

At first, I copy-pasted the code into my program, then I compiled, got

an
error, read through it and saw only three quotes. I added a quote to

the
line right before the second apostrophe and got this:

ActiveCell.FormulaR1C1 = ActiveCell.FormulaR1C1 & " + '" & sheetname &
"'!R[5]C[3]"

This gives me the 1004 error, so it's still not reading something in the
second half of the statement as the correct object type to be going into

an
excel formula. What's still wrong?






 
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 07:40 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"