Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Paste values?

I've copied a single area rectanular group of cells.

The program opens a new file. A specific start cell is selected (C9).

Now I want to paste values. What is the line of code to paste values?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Paste values?

Hi

This should do it:

Range("C9").PasteSpecial xlPasteValues

Regards,
Per

"xp" skrev i meddelelsen
...
I've copied a single area rectanular group of cells.

The program opens a new file. A specific start cell is selected (C9).

Now I want to paste values. What is the line of code to paste values?



  #3   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Paste values?


I get "Pastespecial method of Range class failed" error...any other ideas?


"Per Jessen" wrote:

Hi

This should do it:

Range("C9").PasteSpecial xlPasteValues

Regards,
Per

"xp" skrev i meddelelsen
...
I've copied a single area rectanular group of cells.

The program opens a new file. A specific start cell is selected (C9).

Now I want to paste values. What is the line of code to paste values?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Paste values?

Did you copy the cells before PasteSpecal?

Post your code, so we can see what is going wrong.

Regards,
Per

"xp" skrev i meddelelsen
...

I get "Pastespecial method of Range class failed" error...any other ideas?


"Per Jessen" wrote:

Hi

This should do it:

Range("C9").PasteSpecial xlPasteValues

Regards,
Per

"xp" skrev i meddelelsen
...
I've copied a single area rectanular group of cells.

The program opens a new file. A specific start cell is selected (C9).

Now I want to paste values. What is the line of code to paste values?





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Paste values?

Probably, the easiest way to do this is to record a macro and view the results:

Range("C9").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"xp" wrote:


I get "Pastespecial method of Range class failed" error...any other ideas?


"Per Jessen" wrote:

Hi

This should do it:

Range("C9").PasteSpecial xlPasteValues

Regards,
Per

"xp" skrev i meddelelsen
...
I've copied a single area rectanular group of cells.

The program opens a new file. A specific start cell is selected (C9).

Now I want to paste values. What is the line of code to paste values?




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
Change paste to only paste values Chris Trygstad Excel Programming 1 November 6th 08 08:07 PM
find values in multiple cells and paste row values izzyt1972 Excel Discussion (Misc queries) 5 December 26th 07 10:14 PM
can you change the default paste method? (paste values) David A Brown Excel Discussion (Misc queries) 3 December 18th 07 09:59 AM
Dynamic Copy/Paste Special Formulas/Paste Special Values Sharon Perez Excel Programming 3 August 7th 04 09:49 PM
How do i compare values from two sheet and copy & paste if values match? rozb Excel Programming 0 March 5th 04 12:06 AM


All times are GMT +1. The time now is 03:09 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"