All,
I have an excel spreadsheet that I am trying to work with that is output from our organization's financial system. When I open the source file in excel, excel tries to read some of the text as formulas. The text in one cell is "-Room and Board"; I'm assuming excel sees the dash as a neagtive sign and tries to read it as a formula. Excel changes the text to "=-Room and Board", and then shows a #Name error, since that is not a valid formula. Then whenever I try to use the following VBA to work with the particular cell I get an type-mismatch error.
mystring = myworksheet.Cells(1,1).Value
Is there a way to programatically keep Excel from trying to read the cell as a formula?
Thanks,
Collen
I have an excel spreadsheet that I am trying to work with that is output from our organization's financial system. When I open the source file in excel, excel tries to read some of the text as formulas. The text in one cell is "-Room and Board"; I'm assuming excel sees the dash as a neagtive sign and tries to read it as a formula. Excel changes the text to "=-Room and Board", and then shows a #Name error, since that is not a valid formula. Then whenever I try to use the following VBA to work with the particular cell I get an type-mismatch error.
mystring = myworksheet.Cells(1,1).Value
Is there a way to programatically keep Excel from trying to read the cell as a formula?
Thanks,
Collen