Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My spreadsheet has imported text data and unfortunately the text in
one cell begins with an = sign which gives a #NAME error on the spreadsheet. In VBA I simply want to read the contents of the cell and put a single apostrophe in front of it to get rid of the #Name error. When reading the cell I either get Error 2029 or if I use the.text property I get #Name. How can I get to the contents? (which is =--The service line has been turned off) Here is what I want to do. Cells(x,7).Text = " ' " & cells(x,7).Text THANKS |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"DzednConfsd" wrote in message
... My spreadsheet has imported text data and unfortunately the text in one cell begins with an = sign which gives a #NAME error on the spreadsheet. In VBA I simply want to read the contents of the cell and put a single apostrophe in front of it to get rid of the #Name error. When reading the cell I either get Error 2029 or if I use the.text property I get #Name. How can I get to the contents? (which is =--The service line has been turned off) Here is what I want to do. Cells(x,7).Text = " ' " & cells(x,7).Text THANKS Try Cells(x,7).Formula = " ' " & cells(x,7).Formula -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jun 23, 11:46*am, "Clif McIrvin" wrote:
"DzednConfsd" wrote in message ... My spreadsheet has imported text data and unfortunately the text in one cell begins with an = sign which gives a #NAME error on the spreadsheet. *In VBA I simply want to read the contents of the cell and put a single apostrophe in front of it to get rid of the #Name error. *When reading the cell I either get Error 2029 or if I use the.text property I get #Name. *How can I get to the contents? (which is =--The service line has been turned off) Here is what I want to do. Cells(x,7).Text = " ' " & cells(x,7).Text THANKS Try Cells(x,7).Formula = " ' " & cells(x,7).Formula -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) In the immortal words of Homer Simpson D' OH THANKS |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"DzednConfsd" wrote in message
... Try Cells(x,7).Formula = " ' " & cells(x,7).Formula -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) In the immortal words of Homer Simpson D' OH 's OK. That one took me a while to learn, myself! THANKS You're welcome. -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
read fold contents | Excel Discussion (Misc queries) | |||
How do I get Excel 2007 to 'read' cell contents to me, vocally? | Excel Discussion (Misc queries) | |||
read contents of column 1 for particular string | Excel Discussion (Misc queries) | |||
Can Excel's speech be made to read cell contents instead of macro placed text? | Excel Programming | |||
Read the contents of the column | Excel Programming |