Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default HELP: Application.Visible issue - only hide workbook that has user

Hi All,

I have a very critical issue with launching userform created in excel.

I have a like of code that says

Application.visible = false

I want to hide the workbook that has the userform only. But it hides all the
other opened workbooks too.. Is there a way to overcome this? There have been
users who had not saved their workbooks and launched the form and all their
excel files were gone.. How can I resolve this?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default HELP: Application.Visible issue - only hide workbook that has user

application invisible is exactly that . Excel is hidden, the other workbooks
still exist.
your userform should ensure that the application becomes visible again when
it closes.


"sam" wrote:

Hi All,

I have a very critical issue with launching userform created in excel.

I have a like of code that says

Application.visible = false

I want to hide the workbook that has the userform only. But it hides all the
other opened workbooks too.. Is there a way to overcome this? There have been
users who had not saved their workbooks and launched the form and all their
excel files were gone.. How can I resolve this?

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default HELP: Application.Visible issue - only hide workbook that has user

to hide ONLY the workbook that runs the userform , use

Windows(ThisWorkbook.Name).Visible = False

"sam" wrote:

Hi All,

I have a very critical issue with launching userform created in excel.

I have a like of code that says

Application.visible = false

I want to hide the workbook that has the userform only. But it hides all the
other opened workbooks too.. Is there a way to overcome this? There have been
users who had not saved their workbooks and launched the form and all their
excel files were gone.. How can I resolve this?

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default HELP: Application.Visible issue - only hide workbook that has

Thanks for the help Patrick, Is there a way to keep the workbook closed when
we pull data from it? or atleast keep it hidden?

For eg: In my form I have some fields that are auto populated from a
workbook that is on network drive based on what you input in certain fields..
Rite now I have it working but the workbook that has the information always
opens when my code pulls information from it. Is there a way to keep it
closed or hidden? I am not updating this workbook, just pulling information
from it.

Thanks in advance

"Patrick Molloy" wrote:

to hide ONLY the workbook that runs the userform , use

Windows(ThisWorkbook.Name).Visible = False

"sam" wrote:

Hi All,

I have a very critical issue with launching userform created in excel.

I have a like of code that says

Application.visible = false

I want to hide the workbook that has the userform only. But it hides all the
other opened workbooks too.. Is there a way to overcome this? There have been
users who had not saved their workbooks and launched the form and all their
excel files were gone.. How can I resolve this?

Thanks in advance

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default HELP: Application.Visible issue - only hide workbook that has

try
Application.ScreenUpdating=FALSE
before yo access the data. when you close the book, you can set this back to
tru



"sam" wrote:

Thanks for the help Patrick, Is there a way to keep the workbook closed when
we pull data from it? or atleast keep it hidden?

For eg: In my form I have some fields that are auto populated from a
workbook that is on network drive based on what you input in certain fields..
Rite now I have it working but the workbook that has the information always
opens when my code pulls information from it. Is there a way to keep it
closed or hidden? I am not updating this workbook, just pulling information
from it.

Thanks in advance

"Patrick Molloy" wrote:

to hide ONLY the workbook that runs the userform , use

Windows(ThisWorkbook.Name).Visible = False

"sam" wrote:

Hi All,

I have a very critical issue with launching userform created in excel.

I have a like of code that says

Application.visible = false

I want to hide the workbook that has the userform only. But it hides all the
other opened workbooks too.. Is there a way to overcome this? There have been
users who had not saved their workbooks and launched the form and all their
excel files were gone.. How can I resolve this?

Thanks in advance

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........ Duncan[_5_] Excel Programming 8 June 27th 06 10:56 AM
Application Visible Frank Excel Programming 6 December 20th 05 08:01 PM
Application.visible help Glen Mettler[_4_] Excel Programming 0 February 16th 05 10:04 PM
workbook and application reference set to null after the user enters something in an excel sheet Tobias[_3_] Excel Programming 0 May 19th 04 04:55 PM
hide application for one workbook Mark[_17_] Excel Programming 5 March 2nd 04 08:59 AM


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

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"