Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default View only UserForm?

Is it possible to load a form in the workbook_open event, then make the
excel disappear?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default View only UserForm?

Claud

Put

Application.Visible = False

in the Initialize event of the userform. Be sure to set it back to true in
the QueryClose event.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com


Claud Balls wrote:
Is it possible to load a form in the workbook_open event, then make
the excel disappear?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default View only UserForm?

Hi.

Be careful using application.visible. It is possible to end up with excel
invisible and no easy way to get it back after an error etc.

I have found this code very useful when that happens.

Dim objXL
Dim strMessage

On Error Resume Next

' Try to grab a running instance of
' Excel...
Set objXL = GetObject(, "Excel.Application")

' What did we find?..
If Not TypeName(objXL) = "Empty" Then
strMessage = "Excel Running."
Else
strMessage = "Excel Not Running."
End If

' Feedback to user...
MsgBox strMessage, vbInformation, "Excel Status"

' Make the Excel instance visible
' if we found one
if strMessage = "Excel Running." then _
objXL.Visible = true


HTH

Ken


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default View only UserForm?

Hi

Sorry dick, I really meant to reply to Clauds post.

I should also have mentioned that the code is vbscript. Save it to the
desktop as something like "activate excel.vbs" using notepad. Then if excel
is ever accidentally invisible, just double click it.

Ken


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default View only UserForm?

No problem, Ken, it's a good point.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com


Ken Macksey wrote:
Hi

Sorry dick, I really meant to reply to Clauds post.

I should also have mentioned that the code is vbscript. Save it to the
desktop as something like "activate excel.vbs" using notepad. Then if
excel is ever accidentally invisible, just double click it.

Ken





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
How to turn off Page Layout View as default view Colin Halliday New Users to Excel 3 October 12th 07 02:37 AM
How do I view color onscreen (it shows up in print view only) janice Excel Discussion (Misc queries) 1 August 15th 06 07:32 PM
MS Month View Control for use in XL Userform hglamy[_3_] Excel Programming 0 January 16th 04 03:01 PM
View the data in a cell on a userform Henry[_5_] Excel Programming 0 January 8th 04 11:53 PM
View Row Data in UserForm / Edit Pete T[_2_] Excel Programming 1 October 17th 03 10:36 PM


All times are GMT +1. The time now is 06:45 PM.

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"