Ignore empty sheet

Wimpie

Board Regular
Joined
Aug 12, 2008
Messages
207
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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Wimpie

Board Regular
Joined
Aug 12, 2008
Messages
207
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:

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
How about at least posting the code for CopyNameAndTotalToBlanks.
 

Forum statistics

Threads
1,137,298
Messages
5,680,695
Members
419,927
Latest member
Axtros

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