Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Macro to "paste special"

Hello

I would very much like to make a macro that pastes
whatever I added to my clipboard last into a cell, and
only values. I would then be able to use the menus thats
already in Excel to copy a cell, then I would run my
macro that pastes this selection with values only.

I havent been able to program this in VBA, so if anyone
know the code for this I would appreciate it very much.

Best regards
Stig
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default VBA Macro to "paste special"

Stig,

ActiveCell.PasteSpecial xlPasteValues

Rob

"Stig" wrote in message
...
Hello

I would very much like to make a macro that pastes
whatever I added to my clipboard last into a cell, and
only values. I would then be able to use the menus thats
already in Excel to copy a cell, then I would run my
macro that pastes this selection with values only.

I havent been able to program this in VBA, so if anyone
know the code for this I would appreciate it very much.

Best regards
Stig



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Macro to "paste special"

This doesent work. I get an runtime error. The problem is
that i need the VBA to handle whats in my clipboard. I
think maybe I need to define this too....


-----Original Message-----
Stig,

ActiveCell.PasteSpecial xlPasteValues

Rob

"Stig" wrote in message
...
Hello

I would very much like to make a macro that pastes
whatever I added to my clipboard last into a cell, and
only values. I would then be able to use the menus

thats
already in Excel to copy a cell, then I would run my
macro that pastes this selection with values only.

I havent been able to program this in VBA, so if anyone
know the code for this I would appreciate it very much.

Best regards
Stig



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default VBA Macro to "paste special"

Stig,

Chip Pearson has some examples about Clipboard manipulation he
http://www.cpearson.com/excel/clipboar.htm

Rob


"Stig" wrote in message
...
This doesent work. I get an runtime error. The problem is
that i need the VBA to handle whats in my clipboard. I
think maybe I need to define this too....


-----Original Message-----
Stig,

ActiveCell.PasteSpecial xlPasteValues

Rob

"Stig" wrote in message
...
Hello

I would very much like to make a macro that pastes
whatever I added to my clipboard last into a cell, and
only values. I would then be able to use the menus

thats
already in Excel to copy a cell, then I would run my
macro that pastes this selection with values only.

I havent been able to program this in VBA, so if anyone
know the code for this I would appreciate it very much.

Best regards
Stig



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Macro to "paste special"

Selection.PasteSpecial Paste:=xlValues

That's it. - Pikus


---
Message posted from http://www.ExcelForum.com/



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
Excel should have a "Copy absolute formulas " in Paste Special. PaleRider Excel Discussion (Misc queries) 6 October 29th 09 09:56 PM
Why would "paste special" disappear as an option in Excel JI Charts and Charting in Excel 1 October 17th 08 07:53 PM
how to copy a pivot table and "paste special" formats in excel 07 kswan Excel Discussion (Misc queries) 1 October 16th 07 01:27 PM
copy--paste--special "formula" for a whole column Janis Excel Discussion (Misc queries) 2 July 31st 07 04:40 PM
I would like to copy & "paste special" an entire book rb Excel Worksheet Functions 2 February 7th 06 08:10 PM


All times are GMT +1. The time now is 03:14 AM.

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

About Us

"It's about Microsoft Excel"