Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default sum cell address

i am doign a sum via vba...
Cells(rngAssyTCR.Row, rngGFTCR.Column).Value = "='[" &
AssyWkBkName & "]" & AssyWkSht1 & "'!R" & rngSumOf.Row
& "C" & incrColby1 & "/" & 1000 & "+" & Cells
(rngTCRTurnKey.Row, rngGFTCR.Column).Address(0, 0)

whihc is getting replaced as below finally in the cells as:
=[Assembly_RFC0405.xls]GF!$C$6/1000+'D116'

I am unable to understand why this apostrophe is come
before D116..
any suggestions?

thanks
monika
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sum cell address

because you are mixing R1C1 references with A1 style references. Use one or
the other, but don't mix both. In this case, it accepts your first
reference which is R1C1 and doesn't recognize the second which is A1

Cells(rngAssyTCR.Row, rngGFTCR.Column).Value = "='[" & _
AssyWkBkName & "]" & AssyWkSht1 & "'!R" & rngSumOf.Row _
& "C" & incrColby1 & "/" & 1000 & "+" & Cells _
(rngTCRTurnKey.Row, rngGFTCR.Column).Address(0, 0,xlR1C1)

should work.

--
Regards,
Tom Ogilvy

"monika" wrote in message
...
i am doign a sum via vba...
Cells(rngAssyTCR.Row, rngGFTCR.Column).Value = "='[" &
AssyWkBkName & "]" & AssyWkSht1 & "'!R" & rngSumOf.Row
& "C" & incrColby1 & "/" & 1000 & "+" & Cells
(rngTCRTurnKey.Row, rngGFTCR.Column).Address(0, 0)

whihc is getting replaced as below finally in the cells as:
=[Assembly_RFC0405.xls]GF!$C$6/1000+'D116'

I am unable to understand why this apostrophe is come
before D116..
any suggestions?

thanks
monika



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
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),QuoteNotes, sarah Excel Worksheet Functions 2 February 17th 09 02:59 PM
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),Range ... ? sarah Excel Worksheet Functions 0 February 17th 09 02:06 PM
Return cell address of a cell based on contents of cell. Danny Excel Worksheet Functions 4 November 15th 08 03:11 AM
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
How make hyperlink refer to cell content rather than cell address. Omunene Excel Discussion (Misc queries) 3 March 2nd 06 01:07 AM


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