Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),QuoteNotes, | Excel Worksheet Functions | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),Range ... ? | Excel Worksheet Functions | |||
Return cell address of a cell based on contents of cell. | Excel Worksheet Functions | |||
find last cell in range with data, display cell address | Excel Worksheet Functions | |||
How make hyperlink refer to cell content rather than cell address. | Excel Discussion (Misc queries) |