Copy Paste Values

A

Arthur

I like this code for a normal copy/paste because nothing
gets selected:

Range("A1:A3").Copy Range("C1")


If I need to paste values, this code works, but the copied
range gets selected (I guess) because it is left with a
blinking outline in the worksheet:

Range("A1:A3").Copy
Range("C1").PasteSpecial Paste:=xlPasteValues


(1) Is there a way to copy and paste values without
selecting the copied range?

(2) Alternatively, how do I "clear" the blinking outline
after the procedure runs?

Art
 
J

J.Smith

-----Original Message-----
I like this code for a normal copy/paste because nothing
gets selected:

Range("A1:A3").Copy Range("C1")


If I need to paste values, this code works, but the copied
range gets selected (I guess) because it is left with a
blinking outline in the worksheet:

Range("A1:A3").Copy
Range("C1").PasteSpecial Paste:=xlPasteValues


(1) Is there a way to copy and paste values without
selecting the copied range?

(2) Alternatively, how do I "clear" the blinking outline
after the procedure runs?

Art

.

Hi Art,

I'm use this method to copy.

Worksheets("Sheet1").Range("A1:D4").Copy _
destination:=Worksheets("Sheet2").Range("E5")

to clear the "blinking cell(s)" use

Application.CutCopyMode = False

Hope that helps..
 
T

Tom Ogilvy

To copy only values without using the clipboard.

Range("C1").Resize(3,1).Value = Range("A1:A3").Value
or
Range("C1:C3").Value = Range("A1:A3").Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top