Ignore empty sheet

Wimpie

Board Regular
Joined
Aug 12, 2008
Messages
210
Good day
Please see the below VBA
Sub Main()
Application.Run "CopyNameAndTotalToBlanks"
Application.Run "CopyNameAndTotalToBlanks1"
Application.Run "CopyNameAndTotalToBlanks1"
Application.Run "CopyNameAndTotalToBlanks3"
End Sub

I need VBA to look if there is info in the sheet that the Application is refering to, and then to ignore if the the sheet the application is refering to dos not have any info in it
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Wigi

I look at the ling, not sure i made explained my problem correctly. Please see below for more clarity
Inside each Aplication is a macro to perform centain steps. If the sheet does not ahve any info the macro stops running for me to debug it.
I need something to "not" run the macro if the sheet it is refering to is empty.
It should not remove the sheet that is blank, it should only continue to the next aplication
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,956
Members
448,535
Latest member
alrossman

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