Print form and increment A1 after printing.

Harry Geda

Board Regular
Joined
Mar 4, 2010
Messages
153
Hello,

I would like to use A1 as counter.
Use the value in the A1 as page number and other formatting in sheet and
then print the sheet if the number in A1 is laess than B1.

After printing increment A1 and check if it is larger than B1.
If not larger than B1 then let the form use the value in A1 do its setting
of the form and then print it.

If the A1 is greater than B1 then stop the printing
I can do manual saving of the file.
The file at this point should have the new values of A1 and B1.

Entering the file next time A1 is larger than B1.
I change the B1 to a new number and resume printing.
The code should print from the new A1 number and print until it is larger than B1.

I have posted something similar to this before but I could not make it work.
Please tell me which section is placed in Sheet1 and which code goes
in Module1 section.

If you think a Print button will make it easier then I welcome that.

Thank you,
Harry
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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