Hiding the Excel UI when running a userform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a user form that is used to capture data that updates another
spreadsheet. Is it possible to programmatically hide all of the Excel user
interface so that the end user only sees the user form?
 
This gets rid of quite a bit. You can play with it to see if it is what you
are looking for.

With Application
.DisplayFullScreen = True
.DisplayFormulaBar = False
.DisplayStatusBar = False
End With
With ActiveWindow
.DisplayHorizontalScrollBar = False 'Make space and clear screen
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
.DisplayHeadings = False
.DisplayGridlines = False
End With
 
You can use Application.Visible = False. Make sure that it gets set back to
True even when (especially when) an error occurs.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
Thanks Chip. Is there the equivalent of an autoexec routing in which I could
place the code? It would be cool if I could just have the form appear
without the user ever seeing the Excel UI.

Ken
 
You can put the code in the Workbook_Open event procedure in the
ThisWorkbook code module or in a macro named Auto_Open.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
That's exactly what I was looking for thanks. I haven't done much VBA
programming in the last five years or so, but am getting back into it with an
assortment of projects at work. Any recommendations for books related to VBA
programming in Excel 2007? TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top