Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Application Visible

Hi,

I have created a worksheet start with a Userform and with the command
Private Sub UserForm_Initialize()
Application.Visible = False
end sub

only the userform is visible for users and not the worksheet. This works
fine. Only thing is that with this option all my open worksheets are hidden.
Only by closing this worksheet all my other opened excelsheets are visible
again. IS there a way to only hide the worksheet i want to hide and to be
able to work with others at the same time.

Thanks in advance!

Kind regards,

Frank
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Application Visible

Worksheets("YourSheet").Visible = False

Mike F
"Frank" wrote in message
...
Hi,

I have created a worksheet start with a Userform and with the command
Private Sub UserForm_Initialize()
Application.Visible = False
end sub

only the userform is visible for users and not the worksheet. This works
fine. Only thing is that with this option all my open worksheets are
hidden.
Only by closing this worksheet all my other opened excelsheets are visible
again. IS there a way to only hide the worksheet i want to hide and to be
able to work with others at the same time.

Thanks in advance!

Kind regards,

Frank



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Application Visible

Activesheet.Visible = xlSheetHidden

--
Regards,
Tom Ogilvy

"Frank" wrote in message
...
Hi,

I have created a worksheet start with a Userform and with the command
Private Sub UserForm_Initialize()
Application.Visible = False
end sub

only the userform is visible for users and not the worksheet. This works
fine. Only thing is that with this option all my open worksheets are

hidden.
Only by closing this worksheet all my other opened excelsheets are visible
again. IS there a way to only hide the worksheet i want to hide and to be
able to work with others at the same time.

Thanks in advance!

Kind regards,

Frank



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Application Visible

Hi,

Thanks a lot for the quick reaction, but this is not what i meant. With
these commands only mu worksheet (employees) is hidden. I want all worksheets
to be hidden (same as with the command application.visible = false) but it
shouldn't hide my other opened excel files.
Example: If i have opened to excel files and i open my program all three
files are hidden. By closing my excel file the other two excel files are
shown again.

KR

Frank

"Tom Ogilvy" schreef:

Activesheet.Visible = xlSheetHidden

--
Regards,
Tom Ogilvy

"Frank" wrote in message
...
Hi,

I have created a worksheet start with a Userform and with the command
Private Sub UserForm_Initialize()
Application.Visible = False
end sub

only the userform is visible for users and not the worksheet. This works
fine. Only thing is that with this option all my open worksheets are

hidden.
Only by closing this worksheet all my other opened excelsheets are visible
again. IS there a way to only hide the worksheet i want to hide and to be
able to work with others at the same time.

Thanks in advance!

Kind regards,

Frank




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Application Visible

How about:

Dim Sheet As Worksheet
For Each Sheet In ThisWorkbook.Sheets
Sheet.Visible = False
Next Sheet


"Frank" wrote:

Hi,

Thanks a lot for the quick reaction, but this is not what i meant. With
these commands only mu worksheet (employees) is hidden. I want all worksheets
to be hidden (same as with the command application.visible = false) but it
shouldn't hide my other opened excel files.
Example: If i have opened to excel files and i open my program all three
files are hidden. By closing my excel file the other two excel files are
shown again.

KR

Frank

"Tom Ogilvy" schreef:

Activesheet.Visible = xlSheetHidden

--
Regards,
Tom Ogilvy

"Frank" wrote in message
...
Hi,

I have created a worksheet start with a Userform and with the command
Private Sub UserForm_Initialize()
Application.Visible = False
end sub

only the userform is visible for users and not the worksheet. This works
fine. Only thing is that with this option all my open worksheets are

hidden.
Only by closing this worksheet all my other opened excelsheets are visible
again. IS there a way to only hide the worksheet i want to hide and to be
able to work with others at the same time.

Thanks in advance!

Kind regards,

Frank






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Application Visible

ActiveWindow.Visible = False

or

Windows("MyWorkbook.xls").Visible = False

Another possibility is to make your workbook an Addin. (which may be what
you really want). You can do this in the VBE by changing the IsAddin
property (to True) of the ThisWorkbook member of the Project/Workbook.



Just for information, Charlie's suggestion will error, because at least one
sheet must be visible when hiding sheets.

--
Regards,
Tom Ogilvy


"Charlie" wrote in message
...
How about:

Dim Sheet As Worksheet
For Each Sheet In ThisWorkbook.Sheets
Sheet.Visible = False
Next Sheet


"Frank" wrote:

Hi,

Thanks a lot for the quick reaction, but this is not what i meant. With
these commands only mu worksheet (employees) is hidden. I want all

worksheets
to be hidden (same as with the command application.visible = false) but

it
shouldn't hide my other opened excel files.
Example: If i have opened to excel files and i open my program all three
files are hidden. By closing my excel file the other two excel files are
shown again.

KR

Frank

"Tom Ogilvy" schreef:

Activesheet.Visible = xlSheetHidden

--
Regards,
Tom Ogilvy

"Frank" wrote in message
...
Hi,

I have created a worksheet start with a Userform and with the

command
Private Sub UserForm_Initialize()
Application.Visible = False
end sub

only the userform is visible for users and not the worksheet. This

works
fine. Only thing is that with this option all my open worksheets are
hidden.
Only by closing this worksheet all my other opened excelsheets are

visible
again. IS there a way to only hide the worksheet i want to hide and

to be
able to work with others at the same time.

Thanks in advance!

Kind regards,

Frank





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Application Visible

That I didn't know. Now I do!

"Tom Ogilvy" wrote:



Just for information, Charlie's suggestion will error, because at least one
sheet must be visible when hiding sheets.


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
Application.Visible = False SimonB Setting up and Configuration of Excel 1 October 16th 06 09:51 PM
Application.Visible = False SimonB Excel Discussion (Misc queries) 1 October 15th 06 01:10 PM
application.visible problem Pierre via OfficeKB.com[_2_] Excel Programming 8 November 7th 05 04:17 PM
Visible Instances of an Application TCook Excel Programming 4 October 9th 05 05:11 AM
Application.visible help Glen Mettler[_4_] Excel Programming 0 February 16th 05 10:04 PM


All times are GMT +1. The time now is 02:03 AM.

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

About Us

"It's about Microsoft Excel"