?
Solved

Minimising workbook from VBA while userform displayed

Posted on 2007-07-26
4
Medium Priority
?
1,032 Views
Last Modified: 2012-05-05
Hi,

I am using a number of userforms under VBA to help enter data into an excel spreasheet (XP, Office 2003).
I would like to be able to minimize the workbook while the userform is displayed.

Is there a workbook method that does this?

Thanks

G
0
Comment
Question by:gbergsma
  • 2
  • 2
4 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 19573639
You need to use the Window object, not the Workbook:
activewindow.WindowState = xlMinimized
Regards,
Rory
0
 

Author Comment

by:gbergsma
ID: 19573680
That minimises the workbook OK, however I want to minimise the Excel window
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 150 total points
ID: 19574231
You need to use:
Application.WindowState = xlMinimized
and then you need to show the form modelessly - i.e. use:
userform1.show false

Regards,
Rory
0
 

Author Comment

by:gbergsma
ID: 19586386
That does the trick - thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question