Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Error when using IDE commands

Hi folks,

using Excel 2000 allows to use the following code
(which is quite helpful during developement)
when opening and closing the workbook.

Sub OpenMainWindow()
With Application.VBE.MainWindow
.Visible = True
.SetFocus
End With
End Sub

Sub CloseMainWindow()
Application.VBE.MainWindow.Visible = False
End Sub

Running the same application using Excel 2003 this
code creates errors.

Are there any infos or known workarounds
concerning this problem?

Regards
Peter Ostermann
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Error when using IDE commands

Peter,

In Excel (not in the VBE) choose Tools - Macro - Security - Trusted
Publishers, check "Trust Access to Visual Basic Project".

hth,

Doug


"Peter Ostermann" wrote in message
...
Hi folks,

using Excel 2000 allows to use the following code
(which is quite helpful during developement)
when opening and closing the workbook.

Sub OpenMainWindow()
With Application.VBE.MainWindow
.Visible = True
.SetFocus
End With
End Sub

Sub CloseMainWindow()
Application.VBE.MainWindow.Visible = False
End Sub

Running the same application using Excel 2003 this code creates errors.

Are there any infos or known workarounds
concerning this problem?

Regards
Peter Ostermann



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
VBA commands Love2Learn Excel Discussion (Misc queries) 4 January 28th 09 07:31 AM
DDE Commands Newby Excel Programming 2 October 17th 05 08:38 PM
DOS commands Taikoubo Excel Discussion (Misc queries) 0 March 30th 05 03:37 AM
Help with "if-then"/look up commands or what ever you think is best. [email protected] Excel Discussion (Misc queries) 2 March 16th 05 08:25 PM
MS DOS Commands nath Excel Programming 1 June 9th 04 02:22 PM


All times are GMT +1. The time now is 10:16 AM.

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

About Us

"It's about Microsoft Excel"