Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When i open my file running userform. I operate only in
userform. I want hide application and work on userform: Application.Visible = False it's work but this code unenable show another workbook (sheet) who run after. I'd like hide only application with my userform. Is Excel allow for this action? Regards Mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mark,
Do you want to make it visible when the form closes? If so, just issue an Application.Visible = True in the closedown Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Application.Visible = True End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... When i open my file running userform. I operate only in userform. I want hide application and work on userform: Application.Visible = False it's work but this code unenable show another workbook (sheet) who run after. I'd like hide only application with my userform. Is Excel allow for this action? Regards Mark |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for reply.
Bob, i have commandbutton (in userform)to exit userform and workbook, i'd like hide application (only with this specific userform), in another open workbook i want Application.Visible = true Unfortunatelly code Activeworbook.visible = false doesn't support properties on queryclose i had code: Private Sub UserForm_QueryClose _ (Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then MsgBox "You don't close it" Cancel = True End If End Sub Best Regards Mark -----Original Message----- Mark, Do you want to make it visible when the form closes? If so, just issue an Application.Visible = True in the closedown Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Application.Visible = True End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... When i open my file running userform. I operate only in userform. I want hide application and work on userform: Application.Visible = False it's work but this code unenable show another workbook (sheet) who run after. I'd like hide only application with my userform. Is Excel allow for this action? Regards Mark . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mark,
Not sure I am entirely with you here. Are you saying that you cannot do what I suggest as you already have code in QueryClose? If so, how does the form get closed down, your code stops it in all cases. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... Thanks for reply. Bob, i have commandbutton (in userform)to exit userform and workbook, i'd like hide application (only with this specific userform), in another open workbook i want Application.Visible = true Unfortunatelly code Activeworbook.visible = false doesn't support properties on queryclose i had code: Private Sub UserForm_QueryClose _ (Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then MsgBox "You don't close it" Cancel = True End If End Sub Best Regards Mark -----Original Message----- Mark, Do you want to make it visible when the form closes? If so, just issue an Application.Visible = True in the closedown Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Application.Visible = True End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... When i open my file running userform. I operate only in userform. I want hide application and work on userform: Application.Visible = False it's work but this code unenable show another workbook (sheet) who run after. I'd like hide only application with my userform. Is Excel allow for this action? Regards Mark . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I close userform and workbook by cbClose, i operate after
open workbook only on userform.. sub cbClose () Unload Me ' stuff ActiveWorkbook.Save ActiveWorkbook.Close end Sub thanx Bob for you help Mark -----Original Message----- Mark, Not sure I am entirely with you here. Are you saying that you cannot do what I suggest as you already have code in QueryClose? If so, how does the form get closed down, your code stops it in all cases. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... Thanks for reply. Bob, i have commandbutton (in userform)to exit userform and workbook, i'd like hide application (only with this specific userform), in another open workbook i want Application.Visible = true Unfortunatelly code Activeworbook.visible = false doesn't support properties on queryclose i had code: Private Sub UserForm_QueryClose _ (Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then MsgBox "You don't close it" Cancel = True End If End Sub Best Regards Mark -----Original Message----- Mark, Do you want to make it visible when the form closes? If so, just issue an Application.Visible = True in the closedown Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Application.Visible = True End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... When i open my file running userform. I operate only in userform. I want hide application and work on userform: Application.Visible = False it's work but this code unenable show another workbook (sheet) who run after. I'd like hide only application with my userform. Is Excel allow for this action? Regards Mark . . |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
of course cbClose_Click () ' commandbuttom
-----Original Message----- I close userform and workbook by cbClose, i operate after open workbook only on userform.. sub cbClose () Unload Me ' stuff ActiveWorkbook.Save ActiveWorkbook.Close end Sub thanx Bob for you help Mark -----Original Message----- Mark, Not sure I am entirely with you here. Are you saying that you cannot do what I suggest as you already have code in QueryClose? If so, how does the form get closed down, your code stops it in all cases. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... Thanks for reply. Bob, i have commandbutton (in userform)to exit userform and workbook, i'd like hide application (only with this specific userform), in another open workbook i want Application.Visible = true Unfortunatelly code Activeworbook.visible = false doesn't support properties on queryclose i had code: Private Sub UserForm_QueryClose _ (Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then MsgBox "You don't close it" Cancel = True End If End Sub Best Regards Mark -----Original Message----- Mark, Do you want to make it visible when the form closes? If so, just issue an Application.Visible = True in the closedown Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Application.Visible = True End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Mark" wrote in message ... When i open my file running userform. I operate only in userform. I want hide application and work on userform: Application.Visible = False it's work but this code unenable show another workbook (sheet) who run after. I'd like hide only application with my userform. Is Excel allow for this action? Regards Mark . . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing a workbook exits Excel Application | Excel Discussion (Misc queries) | |||
I cant hide a workbook | Excel Worksheet Functions | |||
Hide workbook | Excel Programming | |||
Application Error when running Macro on Workbook open | Excel Programming | |||
Application Error when running Macro on Workbook open | Excel Programming |