Hi All,
I need to collect the data from a couple of cells in multiple CSV files.
Generally no problem, except that in some cases the (text) data in one of the cells in some of the sheets is prefixed by a minus sign.
This means that when excel opens the CSV sheet, any text in the cell after the "-" is considered as a named range and as this new range hasn't been declared or set up in any way, excel sees this as an error and shows the cell as [#NAME?].
Excel has also helpfully added an equals sign in front of the minus, which I think is compounding the problem.
Typically, the data I'm after may be of the format "-TEST-32"
If I go to the cell I can see the text in there so the content still exists but I can't get at it, only the [#NAME?] result.
I can trap for this, but its really better if I can get to this data with VBA.
Is there any way I can do this? Perhaps tell excel that this cell is not a formula? Or just get the content of the "formula" itself?
Cheers,
Mal
I need to collect the data from a couple of cells in multiple CSV files.
Generally no problem, except that in some cases the (text) data in one of the cells in some of the sheets is prefixed by a minus sign.
This means that when excel opens the CSV sheet, any text in the cell after the "-" is considered as a named range and as this new range hasn't been declared or set up in any way, excel sees this as an error and shows the cell as [#NAME?].
Excel has also helpfully added an equals sign in front of the minus, which I think is compounding the problem.
Typically, the data I'm after may be of the format "-TEST-32"
If I go to the cell I can see the text in there so the content still exists but I can't get at it, only the [#NAME?] result.
I can trap for this, but its really better if I can get to this data with VBA.
Is there any way I can do this? Perhaps tell excel that this cell is not a formula? Or just get the content of the "formula" itself?
Cheers,
Mal