CTRL+G

Zac

Well-known Member
Joined
Feb 20, 2002
Messages
796
I'm trying to record a MACRO that shows the non-blank cells in COL "D".
Then I want to hit CTRL+G, Special, Visible Cells Only, and cut them to another location.

I've performed this before in a MACRO, but I'm getting an error this time
which states:
"The command you chose cannot be performed with multiple selections.
Select a single range and click the command again".

Like I said I've done this before and use this command for my Acctg Dept for their end of the month Commission Report.

Why can't I do it here?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Greg Truby

MrExcel MVP
Joined
Jun 19, 2002
Messages
10,022
You can copy a selection of non-contiguous cells as long as each area has the same column(s). You can't cut like that. Try copying then depending on your desired outcome, .ClearContents; .Clear or .Delete Shift:=xlUp back in your source range.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,329
Messages
5,769,462
Members
425,551
Latest member
yeat

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
Top