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 userforms broblem

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
Userforms & Pocket PC ajw150 Excel Discussion (Misc queries) 0 December 7th 05 12:44 PM
UserForms bennyob Excel Discussion (Misc queries) 4 November 7th 05 01:58 PM
Creating UserForms Victor New Users to Excel 1 July 8th 05 07:57 PM
Open Userforms from a Dropdown list skid812pb Excel Discussion (Misc queries) 0 May 23rd 05 11:28 PM
Naming userforms Greg B Excel Discussion (Misc queries) 2 March 16th 05 01:31 PM


All times are GMT +1. The time now is 02:33 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"