VB Form: whole form won't print

auroastra

New Member
Joined
Apr 21, 2002
Messages
17
Hello,

I have made a VB form for a worksheet with a "Print" command button (housed on the worksheet--not the form but coded to refer to the form). Form Height =1850 with 20 items but when the "Print" command button is pressed, it only prints 6 (of 20) items...just a page worth.

Sorry, am new to using VB in excel and just learning.

Chris
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hello everyone,
I found the key to this and wanted everyone to know. It is a Microsoft bug that causes this (see this website: http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q191130&)

On our network we only have excel 97 and I'm sure our IT group has not downloaded the fix. SO YOU CAN'T PRINT THE WHOLE FORM!!!

Does anyone know any 'goto' code I can use to print sections of the form perhaps?

Help,
Astra

On 2002-04-25 06:47, auroastra wrote:
Hello,

I have made a VB form for a worksheet with a "Print" command button (housed on the worksheet--not the form but coded to refer to the form). Form Height =1850 with 20 items but when the "Print" command button is pressed, it only prints 6 (of 20) items...just a page worth.

Sorry, am new to using VB in excel and just learning.

Chris
 
Upvote 0
This may work in 97? I use 2000 & XP.
On the sheet that you want to print format the print with SetPageLength and PageSetUp from the menu. Excel will remember each sheets print setup. Then build a macro with this code.

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

You may need to add a Sheets("xxxx").Select code above the PrintOut code?

Where "xxxx" is your sheet name?

Build a Form Button on the sheet and attach the macro.

This should print out the whole sheet, based upon how you setup the print for that sheet?

If the forms do not print, only the sheet that they are on, you may need to set the form property to print with sheet.

Hope this helps. JSW
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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