Keeping Excel hidden until export is complete

bd528

Registered User.
Local time
Today, 10:59
Joined
May 7, 2012
Messages
111
Hi all,

I am exporting various types of data from Access to Excel using

Code:
Dim excelApp As Object
<snip>
Set excelApp = CreateObject("Excel.Application")

I then do some formatting, etc in Excel via Access VBA

This all works perfectly.

What I would like to do though, purely for aesthetics, is keep the Excel window hidden until the export and formatting is complete.

If this is possible, can someone provide the necessary code.

Thanks in advance
 
I think something like
Code:
 With excelApp
            .Visible = False
            do your formatting shizzle here
            .Visible = True
might work.
 
I think something like
Code:
 With excelApp
            .Visible = False
            do your formatting shizzle here
            .Visible = True
might work.

Perfect. Thanks again for your help.
 

Users who are viewing this thread

Back
Top Bottom