Hi all,
Have search the groups but didn't find an answer to my problem,
therefore here my question.
Same workbook, two different sheets. Excel 2003 on W2000
source cells: Range of cells are formatted as custom date. Majority of
cells contain valid date, some of them contains text as: no date for
invoice (without any quotes etc.)
target cells: empty and formatted as custom date (same as source cells)
Applying a macro that copies source to date (no formatting) with a
copy/paste (not copy value) sometimes screws up the format of the
target cells transforming them to general, and of-course displaying a
number i.e. of the date.
The strangest thing is that it screw up randomly.
Any ideas ?
Best regards,
Ronald.
gt; wrote in message oups.com...
gt; Hi all,
gt;
gt; Have search the groups but didn't find an answer to my problem,
gt; therefore here my question.
gt;
gt; Same workbook, two different sheets. Excel 2003 on W2000
gt;
gt; source cells: Range of cells are formatted as custom date. Majority of
gt; cells contain valid date, some of them contains text as: no date for
gt; invoice (without any quotes etc.)
gt;
gt; target cells: empty and formatted as custom date (same as source cells)
gt;
gt; Applying a macro that copies source to date (no formatting) with a
gt; copy/paste (not copy value) sometimes screws up the format of the
gt; target cells transforming them to general, and of-course displaying a
gt; number i.e. of the date.
gt; The strangest thing is that it screw up randomly.
gt;
gt; Any ideas ?
gt;
gt; Best regards,
gt;
gt; Ronald.
gt;
First of all, you said some cells contain something other than valid dates,
and since Excel tries to help by guessing formats sometimes, you can expect
random results if the data is also random.
Next: I'm not clear what your macro is doing when it pastes. Is it the
equivalent of using (via the menu, manually) Paste Special, Values?
Thanks for your help so far!
Is there any way to set the quot;help by guessing formatsquot; off ?
sorry, I wasn't unclear about the macro.
It only does a copy paste (as done by hand). Problem is not sloely when
doing it trough the macro, manualy also.
Thx in advance !!
- Dec 25 Tue 2007 20:41
format changes after copy/paste
close
全站熱搜
留言列表
發表留言