Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default method vbproject of object workbook fail

I get this error every time The code activeworkbook.vbproject...... is used.

i have ticked the "Microsoft Visual Basic For Applications Extensibility 5.3". in references

can someone help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default method vbproject of object workbook fail

You'll need to show us your code

The following for example
MsgBox ActiveWorkbook.VBProject.VBComponents.Count
works fine without any extra references.

Show us the context in which you use the object, and then
we may be able to identify and resolve your issue.

Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
I get this error every time The code

activeworkbook.vbproject...... is used.

i have ticked the "Microsoft Visual Basic For

Applications Extensibility 5.3". in references

can someone help
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default method vbproject of object workbook fail

Sub vbext_ct_StdModule()


MsgBox ActiveWorkbook.VBProject.VBComponents.Count


End Sub
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default method vbproject of object workbook fail

In Excel, go to the Tools menu, choose Macros, the Security, then
the Trusted Publishers tab. There, ensure that "Trust access to
Visual Basic Project" is checked.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Chrispy" wrote in message
...
I get this error every time The code

activeworkbook.vbproject...... is used.

i have ticked the "Microsoft Visual Basic For Applications

Extensibility 5.3". in references

can someone help



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default method vbproject of object workbook fail

It worked... thanks

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
error message Method €˜Add of object €˜CommandBar Controls fail? Sandy Pringle Excel Discussion (Misc queries) 2 October 30th 09 02:45 PM
Method Add of object Validation Failed - please help Shokie Excel Worksheet Functions 1 July 10th 09 01:33 PM
Is there a method for refreshing an object variable? uno@korsmaa Excel Programming 1 October 21st 03 06:58 PM
Method ~ of Object ~ Failed. Joan Excel Programming 5 August 26th 03 08:13 PM
Object not supporting property or method Stuart[_5_] Excel Programming 3 August 23rd 03 07:45 AM


All times are GMT +1. The time now is 02:25 PM.

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"