Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to past the formula from a cell into another
cell as text. That is if cell A1 has a formula which is =Sum(A2:A10). I want to be able to past the text version of this to say B1. So B1 will say 'Sum(A2:A10). How do you do this? I have been trying: Range("B1") = Range("A1").formula But this is not giving me what I want. THanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ExcelMonkey
one way: Range("B1") = "'" & Range("A1").Formula Regards Trevor "ExcelMonkey" wrote in message ... I am trying to past the formula from a cell into another cell as text. That is if cell A1 has a formula which is =Sum(A2:A10). I want to be able to past the text version of this to say B1. So B1 will say 'Sum(A2:A10). How do you do this? I have been trying: Range("B1") = Range("A1").formula But this is not giving me what I want. THanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or
Range("B1").Value = Right(Range("A1").Formula, Len(Range("A1").Formula) - 1) "ExcelMonkey" wrote: I am trying to past the formula from a cell into another cell as text. That is if cell A1 has a formula which is =Sum(A2:A10). I want to be able to past the text version of this to say B1. So B1 will say 'Sum(A2:A10). How do you do this? I have been trying: Range("B1") = Range("A1").formula But this is not giving me what I want. THanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks
-----Original Message----- ExcelMonkey one way: Range("B1") = "'" & Range("A1").Formula Regards Trevor "ExcelMonkey" wrote in message ... I am trying to past the formula from a cell into another cell as text. That is if cell A1 has a formula which is =Sum(A2:A10). I want to be able to past the text version of this to say B1. So B1 will say 'Sum(A2:A10). How do you do this? I have been trying: Range("B1") = Range("A1").formula But this is not giving me what I want. THanks . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pasting unformatted text | Excel Discussion (Misc queries) | |||
losing text from text box when pasting selection to word | Excel Discussion (Misc queries) | |||
Pasting #-# as text and not a date | Excel Discussion (Misc queries) | |||
Pasting Text | Excel Discussion (Misc queries) | |||
Pasting text | Excel Discussion (Misc queries) |