VBA - Application.CutCopyMode

plix

Board Regular
Joined
Oct 10, 2006
Messages
187
Hi,

After the copy/paste values, I want to "deselect" range (F24:L30).
I tried Application.CutCopyMode = False, but it does not do the trick.
Any suggestion?

<font face=Courier New>Range("F24:L30").Select<br>Selection.Copy<br>Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _<br>    <SPAN style="color:#00007F">False</SPAN>, Transpose:=<SPAN style="color:#00007F">False</SPAN><br>Application.CutCopyMode = <SPAN style="color:#00007F">False</SPAN></FONT>

Thanks,

Plix
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You shouldn't need to the select the range at all:
Code:
With Range("F24:L30")
    .Copy
    .PasteSpecial xlValues
End With


Edit:

In fact you don't need to use copy :)

Range("F24:L30") = Range("F24:L30").Value
 
Upvote 0
I think that this will achieve the same result:

Code:
With Range("F24:L30")
    .Value = .Value
End With
 
Upvote 0
Thanks both for your help.
The following works perfectly indeed:

With Range("F24:L30")
.Value = .Value
End With

Plix
 
Upvote 0

Forum statistics

Threads
1,196,509
Messages
6,015,618
Members
441,908
Latest member
Guitar1st

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top