ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Cell format changes when I paste (https://www.excelbanter.com/excel-discussion-misc-queries/77685-cell-format-changes-when-i-paste.html)

Richard

Cell format changes when I paste
 
I have a spreadsheet that users paste reference numbers into from another
system. The numbers are either 4, 5 or 11 digits long. Because a lot of the
11 digit numbers begin with a zero that cannot be dropped the cell format has
to be text.

Whenever the user pastes an 11 digit number beginning in a zero the cell
format in excel gets changed from 'Text' to 'General' and the zero is lost

Any ideas on how I can lock the cell format. Excel 2000 user

Doug Kanter

Cell format changes when I paste
 

"Richard" wrote in message
...
I have a spreadsheet that users paste reference numbers into from another
system. The numbers are either 4, 5 or 11 digits long. Because a lot of
the
11 digit numbers begin with a zero that cannot be dropped the cell format
has
to be text.

Whenever the user pastes an 11 digit number beginning in a zero the cell
format in excel gets changed from 'Text' to 'General' and the zero is lost

Any ideas on how I can lock the cell format. Excel 2000 user


This is not a method of locking, but can't they use the Paste Special-Value
trick to put their numbers into the sheet?



Richard

Cell format changes when I paste
 
Hi Doug.

At present that is what they do. Unfortunately sometimes they forget
themselves & just do a 'paste'. The paste not only turns the cell to from
text to general format but amends that cels from locked to unlocked. As teh
workbook is protected I have to ask all users to come out of the [shared}
workbook, unprotect the worksheet, unlock & correct the cell and then
reprotect & reativate the shared facility.

"Doug Kanter" wrote:


"Richard" wrote in message
...
I have a spreadsheet that users paste reference numbers into from another
system. The numbers are either 4, 5 or 11 digits long. Because a lot of
the
11 digit numbers begin with a zero that cannot be dropped the cell format
has
to be text.

Whenever the user pastes an 11 digit number beginning in a zero the cell
format in excel gets changed from 'Text' to 'General' and the zero is lost

Any ideas on how I can lock the cell format. Excel 2000 user


This is not a method of locking, but can't they use the Paste Special-Value
trick to put their numbers into the sheet?




robert111

Cell format changes when I paste
 

Format the receiving cell so that a "text" leading zero appears in front
of any number pasted in

eg "0"000


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=523021


Doug Kanter

Cell format changes when I paste
 
"robert111" wrote
in message ...

Format the receiving cell so that a "text" leading zero appears in front
of any number pasted in

eg "0"000


In Excel 2000, a simple paste function brings the copied format with it. Is
that not the case with later versions?




All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com