Macro for Printing/ Preview in VBA

mars07

New Member
Joined
Dec 28, 2010
Messages
30
Hi once again. On the verge of ending this project and you guys have been awesome in helping me... I hope this is the last hurdle... Ok here I go

When I hit the "Show DataBase" button, I want a print preview of "Supplier Database" in excel.

What I did was, record a macro, and simply call in that button. When I hit the button, it shows the preview, but the problem is somehow, the program gets into some loop... I cannot break it or stop it... I have to use CRTL+ALT+DEL method to close entire excel to break the loop...

Any Idea whats happening and how it can be stopped ?
 
finally it worked... thanks alot... I never thought from that perspective that I should have unloaded the account
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

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