Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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' ![]() PasteSpecial method? Thanks a lot -- stayin ----------------------------------------------------------------------- staying's Profile: http://www.excelforum.com/member.php...fo&userid=2323 View this thread: http://www.excelforum.com/showthread.php?threadid=55088 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Number stored as text | Excel Worksheet Functions | |||
Number stored as text | Excel Discussion (Misc queries) | |||
Number stored as text | Excel Programming | |||
Number stored as text | Excel Discussion (Misc queries) | |||
Number stored as text | Excel Discussion (Misc queries) |