DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649

    Excel VBA - Reshow A UserForm

    I have an app with a single userform.

    On this userform is a bunch of controls from which the user will make selections. Once the selections have been made, a button is clicked and my code iterates through a folder, opening individual spreadsheets, extracting some numbers from each, and putting these numbers on a separate excel file.

    Once this entire process is done, I want the newly created excel file with all of these numbers to be shown. Thus far, the only way I can get rid of the userform so the excel file is shown is to hide it. The problem is that it is a single userform app, so, once hidden, there is no way to show it again without restarting the app.

    Is there a way I can keep my userform up, but place the newly created excel file in front of it?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    A Google search turned up
    Code:
    Application.Windowstate = xlMinimized
    I thought this might do the trick, but for some reason, it doesn't do a thing to the userform.
    Last edited by Hack; 09-11-2008 at 11:43 AM.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Excel VBA - VBA Equivalent of hWnd property
    By Hack in forum VB Classic
    Replies: 4
    Last Post: 08-06-2008, 07:19 AM
  2. Replies: 3
    Last Post: 07-14-2008, 08:13 AM
  3. Replies: 0
    Last Post: 05-15-2008, 04:24 PM
  4. Excel VBA, Userform w/ ComoboBox
    By scgamecock in forum VB Classic
    Replies: 1
    Last Post: 10-24-2007, 01:40 AM
  5. Replies: 1
    Last Post: 01-02-2007, 08:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links