Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I hide VBE window appearing when running VB6 app


Hi,

I am using the following code...

With oWB.VBProject.VBComponents("ThisWorkbook").CodeMod ule
StartLine = .CreateEventProc("Open", "Workbook") + 1
InsertLines StartLine, "MsgBox ""Hello World"",vbokonly"


End With
when I run it, the VBE window shows up and then disappears.
I would like to hide the VBE window from popping up.

I have tried following without any success


oExcel.EnableEvents = False
oExcel.Application.Visible = False
oExcel.Application.ScreenUpdating = False
oExcel.VBE.MainWindow.Visible = False
oExcel.Application.WindowState = xlMinimized

I hope I have made myself clear.

V


--
vivek7
------------------------------------------------------------------------
vivek7's Profile: http://www.excelforum.com/member.php...o&userid=32746
View this thread: http://www.excelforum.com/showthread...hreadid=525782

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel2000 running but window is gone K C Excel Discussion (Misc queries) 0 April 9th 09 07:54 PM
Controls in Sheets (Hide etc.) in Format Menu Not appearing Varne Excel Discussion (Misc queries) 8 September 19th 08 04:45 PM
save changes in Excel window appearing when none have been made? heide Excel Discussion (Misc queries) 3 July 4th 07 06:39 PM
Running URL using VBA - but not displaying IE window matpj[_37_] Excel Programming 2 February 9th 06 11:01 AM
Running macro in a browser window Ted Theodoropoulos Excel Programming 1 August 4th 03 08:24 PM


All times are GMT +1. The time now is 11:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"