Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2006

Tip: Looking for answers? Try searching our database.

Two Excel VBA Quezzies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Omega - 31 May 2006 19:06 GMT
First question,
Is there any way to get a listing of system and/or user data sources
from a VBA app?

Second question,
Is there any way to have a form that is displayed show WHILE Excel is
minimized?  So far I can get the form to show and Excel to minimize,
but it takes the form with it.  Interestingly enough, if I click the
taskbar entry for the program, only the foreground form displays.  But
if I programatically manipulate Excel to be maximized (or normal), the
whole program comes back.

This is purely aesthetics, but I'd like to be able to develop a nice
polished interface where possible.  If anyone is wise in the ways of
Excel and it's events and objects, this is a tricky one.

I'm sure there are more to come!  Thank you in advance to anyone who
responds.

- Alexander Trauzzi
Dave Peterson - 31 May 2006 21:11 GMT
I don't know #1.

But both of these worked ok for me:

Option Explicit
Sub testme()
   Application.Visible = False
   UserForm1.Show
   Application.Visible = True
End Sub
Sub testme2()
   Application.WindowState = xlMinimized
   UserForm1.Show
   Application.WindowState = xlMaximized
End Sub

The first sub hid the application.  The second minimized it.

But then the userform was floating over a different application for me (I didn't
like it).

> First question,
> Is there any way to get a listing of system and/or user data sources
[quoted text clipped - 16 lines]
>
> - Alexander Trauzzi

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.