Hi everyone.
If I type in 0712 into a cell, I get 712
If I format the cell first for 'Text', I get 0712
If I then edit the cell, and put an apostrophe before the 0712, the formula bar will show the apostrophe, but the cell contents will only show 0712.
If I use a VBA code like this:
For Each Cell In Range("C4:C8")
Cell.Value = "'" & Cell.Value
it works just the same as if editing the cell.... BUT
If I use the a formula ="'" &c4, putting an apostrophe before the cell contents, then Excel shows '0712 in the cell. Why does Excel show the apostrophe when a formula is used, but if the cell is manually edited, or the apostrophe is added using VBA, it does not show up in the cell?
If I type in 0712 into a cell, I get 712
If I format the cell first for 'Text', I get 0712
If I then edit the cell, and put an apostrophe before the 0712, the formula bar will show the apostrophe, but the cell contents will only show 0712.
If I use a VBA code like this:
For Each Cell In Range("C4:C8")
Cell.Value = "'" & Cell.Value
it works just the same as if editing the cell.... BUT
If I use the a formula ="'" &c4, putting an apostrophe before the cell contents, then Excel shows '0712 in the cell. Why does Excel show the apostrophe when a formula is used, but if the cell is manually edited, or the apostrophe is added using VBA, it does not show up in the cell?