Un Selecting Range of Cells

Rocky0201

Active Member
Joined
Aug 20, 2009
Messages
278
Hi...

I have a routine that copy's a row of cells (Column A through Column L, Row x) and then paste special format on the next row.

This all works great.

After I finish the routine (x number of for loops) I am finished with the macro. The problem is that the last row that I selected to copy remains selected i.e., traveling dashes.

Is there an un select that I can use on the range of cells that I last copied?

Thanks.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You can remove the "travelling dashes" with this command...
Code:
Application.CutCopyMode = False
As for eliminating the selection itself (assuming you selected the cells beforehand, which is not necessary to do), you can simply select any single cell. So, you could do this...
Code:
Range("A1").Select
or, if you just wanted to select the first cell in the current selection, you could do this...
Code:
Selection(1).Select
 
Upvote 0

Forum statistics

Threads
1,224,513
Messages
6,179,212
Members
452,895
Latest member
BILLING GUY

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