Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pierre via OfficeKB.com
 
Posts: n/a
Default printen userform problem

Hi experts,

I have a userform where the user can choose which sheets to print (1, 2 or
both). I use checkboxes sothe user can indicate what he wants.

I have the following code for the OK button:

Private Sub but_ok_Click()
If chkbox_overzicht Then
show_printsub1 'macro that just shows a form where the user can
indicate which columns to print
End If
If chkbox_management Then
Printen_management
End If
Unload Me
Exit Sub
End Sub

This code does not work because if the user checks both boxes the code will
make a preview of sheet one with on top the userform to indicate which
columns to print.

I would like if the two checkboxes are checked to:

first execute the first print instruction (show a new userform for indicating
which columns to print ), then printpreview this sheet and then go to the
next print instruction for printing sheet2.

Any ideas how to adapt the code ?
thanks,
Pierre

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200601/1
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Problem With Reference Update Egon Excel Worksheet Functions 17 July 16th 05 05:45 AM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
problem office assistant R.VENKATARAMAN Excel Discussion (Misc queries) 0 June 15th 05 06:22 AM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM


All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"