Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Copy cell and paste in same column

Does anyone know if it is possible for a user to copy a cell or range of
cells from column and then paste in the same column? I want to prevent the
users from copying a cell then pasting into another column that is formatted
differently.

Any advise would be greatly appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy cell and paste in same column

I think you would have to use the selection change event to manage this.
Think through what actions would be required - storing the last selection,
determining if the user had the potential to paste, unprotecting the sheet
locking all cells except the accepted column and unlocking that,
reprotecting the sheet. Plus considering what else is going on in your
sheet. Then put code to manage that in the selection change event. Also,
when you make these changes, the clipboard may be cleared, so you would need
to used your record of the last range to recopy it.

Of course if the user disables macros or disables events, your efforts would
be thwarted.

--
Regards,
Tom Ogilvy

"April" wrote in message
...
Does anyone know if it is possible for a user to copy a cell or range of
cells from column and then paste in the same column? I want to prevent

the
users from copying a cell then pasting into another column that is

formatted
differently.

Any advise would be greatly appreciated!



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
Copy a column and paste to another tab to save the data for each m liem Excel Discussion (Misc queries) 3 January 17th 10 03:14 AM
Copy contents in a row and paste in a column CJMFH Setting up and Configuration of Excel 1 July 15th 05 03:14 PM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM
Copy Cell and Paste in Same Column Only April Excel Programming 0 February 16th 05 02:57 PM
Copy Column and Paste steveh[_3_] Excel Programming 2 February 2nd 04 01:36 PM


All times are GMT +1. The time now is 10:16 AM.

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

About Us

"It's about Microsoft Excel"