Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Macro/Paste Special

Heidi,

Excel is "friendly" in that you can just select a single cell and paste an
entire range.

Selection.PasteSpecial Paste:=xlValues
or
Range("A1").PasteSpecial Paste:=xlValues
so it doesn't matter if you have copied a single cell or a range of cells.

steve

"Heidi Harting-Rex" wrote in message
...
Hello,
Some users complain that when they copy data Excel also
copies the borders of the selected cells. They want to
be able to simply copy and paste text within a worksheet.

Is the best way to do this with a macro? If so: I am
wishing to write a macro that would take whatever has
been copied to the clipboard (i.e., this is determined by
the user at that instance) and does a Paste
Special/values.

How can I tell the macro to just look for whatever is in
the clipboard, or has been copied, rather than it looking
for a fixed range?

THANK YOU SINCERELY. All of the best to you today,
Heidi Harting-Rex



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
Cut & Paste Need Special Macro Miss Kitty[_2_] Excel Discussion (Misc queries) 6 August 25th 08 09:12 PM
PASTE SPECIAL w/ Macro Jase Excel Discussion (Misc queries) 7 February 26th 08 06:06 PM
Paste Special in a macro CMAC Excel Worksheet Functions 2 December 6th 04 10:19 PM
Macro to Paste Special MrAlMackay Excel Programming 0 July 17th 03 05:33 PM
Macro to Paste Special MrAlMackay Excel Programming 0 July 17th 03 04:27 PM


All times are GMT +1. The time now is 04:21 PM.

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"