Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimise XL from vb app?

Status
Not open for further replies.

kev777

Technical User
Nov 18, 2001
9
GB
I am deisgning a VB app that will open and close different XL spreadsheets and copy and paste data between them. I have copied the macros into the app which run fine after defining the object etc. but I cannot seem to minimise one of the sheets in the taskbar - keep geeting errors! Although if a sheet is minimised I can open it using the activate command from the Excel Macro! Any ideas?

Thanks,

Kev.
 
Dim oXL As Excel.Application

Set oXL = GetObject(, "Excel.Application")

With oXL
.WindowState = xlMinimized
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top