Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old April 2nd 05, 08:31 PM
Marc
 
Posts: n/a
Default Is there a way to lock out the format for the cell and still allow data entry and C&P?

I've set the spread sheet and have locked all the cells but those that I
want to have filled with data. There are time when I would like to be able
to C&P the data to other sheets but when I do I also copy the format. I
know I can use "paste special" but I want it so anyone can use the C&P
without having to use "paste special".

Marc



  #2   Report Post  
Old April 4th 05, 07:50 AM
Mark
 
Posts: n/a
Default

Hi,
You could write a macro that uses a string for the cell
values.

sub cpme()
dim strCP as string
strcp=range("A1").value
strcp.copy
range("A2").paste

end sub

I am a bit rusty but this sub should give you the right
idea.
Creating a variable for the cell value does not include
any formatting.


0- Mark Sway



-----Original Message-----
I've set the spread sheet and have locked all the cells

but those that I
want to have filled with data. There are time when I

would like to be able
to C&P the data to other sheets but when I do I also copy

the format. I
know I can use "paste special" but I want it so anyone

can use the C&P
without having to use "paste special".

Marc


.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In excel how do I protect the format of a cell but let the user c. John Louis Excel Discussion (Misc queries) 11 October 1st 07 12:03 AM
difficulty changing cell format samsmimi Excel Worksheet Functions 4 April 1st 05 12:25 AM
Format a cell with numbers and user defined text Rod R. Excel Discussion (Misc queries) 0 March 30th 05 04:31 PM
Custom format that shows blank cell if another cell is empty Zdenek Moravec Excel Discussion (Misc queries) 1 March 25th 05 11:45 AM
How do I format a cell so that only specific numbers can be enter. Jim Excel Discussion (Misc queries) 1 February 1st 05 04:51 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2004-2021 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017