#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Editor

Why macro dont work in Excel 2003

Application.VBE.MainWindow.Visible = True

Pierre

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default VBA Editor

Pierre,

Have you set a project reference to...
"Microsoft Visual Basic For Applications Extensibility" library?

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Pierre" wrote in message
Why macro dont work in Excel 2003
Application.VBE.MainWindow.Visible = True
Pierre

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA Editor

Not necessary.

Pierre, in what context do you have that code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Jim Cone" wrote in message
...
Pierre,

Have you set a project reference to...
"Microsoft Visual Basic For Applications Extensibility" library?

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Pierre" wrote in message
Why macro dont work in Excel 2003
Application.VBE.MainWindow.Visible = True
Pierre



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default VBA Editor

From VBA Help:

A method or property can't be used because of security settings. For
example, the properties and methods of the VBE object for manipulating
the Microsoft Visual Basic for Applications (VBA) code stored in an
Microsoft Office document are inaccessible by default.
To turn on trusted access to Visual Basic Projects:

On the Tools menu, point to Macro, and then click Security.
On the Trusted Sources tab, select the Trust access to Visual Basic
Project check box.


Regards,
Shah Shailesh
http://in.geocities.com/shahshaileshs/
(Excel Add-ins Page)

*** Sent via Developersdex http://www.developersdex.com ***
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Editor

On the Tools menu, point to Macro, and then click Security.
On the Trusted Sources tab, select the Trust access to Visual Basic
Project check box.

It's working now.

Thanks,

Pierre



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 Editor Ken G Setting up and Configuration of Excel 2 July 10th 09 02:03 PM
VBA Editor Jonathan Cooper Excel Discussion (Misc queries) 0 March 24th 08 09:15 PM
VBA editor Yara Excel Discussion (Misc queries) 4 October 16th 07 11:24 PM
VB Editor mlh Excel Discussion (Misc queries) 2 June 29th 07 01:17 PM
VBA Editor won't run derlake Excel Programming 1 May 30th 04 06:30 AM


All times are GMT +1. The time now is 07:34 PM.

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"