S
staying
Hi, all.
I came across a problem when trying to put a value from one cell t
another.
Here goes a sample code.
=======================
Sub aaa()
Dim rng_src as range
Set rng_src = activecell
activecell.offset(1,0).value = rng_src.value
activecell.offset(1,0).NumberFormat = rng_src.NumberFormat
End Sub
=======================
It works fine with regular numeric or string values, but gets ver
frustrating when the source cell is "number stored as text", whethe
the cell format was overriden with an apostrophe or it was value-copie
from such ranges.
I can't find anything in the vba help file or the object browser.
Is there any way to work around this pain in the 's' , other tha
PasteSpecial method?
Thanks a lot
I came across a problem when trying to put a value from one cell t
another.
Here goes a sample code.
=======================
Sub aaa()
Dim rng_src as range
Set rng_src = activecell
activecell.offset(1,0).value = rng_src.value
activecell.offset(1,0).NumberFormat = rng_src.NumberFormat
End Sub
=======================
It works fine with regular numeric or string values, but gets ver
frustrating when the source cell is "number stored as text", whethe
the cell format was overriden with an apostrophe or it was value-copie
from such ranges.
I can't find anything in the vba help file or the object browser.
Is there any way to work around this pain in the 's' , other tha
PasteSpecial method?
Thanks a lot