A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Counting the total number of macros in an Office document



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 28th 09, 10:18 AM posted to microsoft.public.outlook.program_vba
Rick Barnsley
external usenet poster
 
Posts: 1
Default Counting the total number of macros in an Office document

Hi,

I'm trying to programmatically count the number of macros within an Office
document.

I haven't had much luck with finding a solution online.

I have tried accessing the VBAProjects through:

Application.VBE.VBProjects(1).VBComponents.Count

only to receive the error:

---------------------------
Microsoft Visual Basic
---------------------------
Run-time error '1004':

Programmatic access to Visual Basic Project is not trusted

---------------------------
OK Help
---------------------------

Is there another function I can call to return the number of available
macros for a given document?

Cheers,
Rick
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
show number of unread AND number of total messages? [email protected] Outlook - General Queries 1 December 15th 08 09:10 PM
total number of occurences for a year aimee Outlook - Calandaring 1 January 31st 08 02:28 AM
calculate the total number of hours of appointments Tine202 Outlook - Calandaring 2 April 12th 07 07:54 PM
counting the number of unanswered email messages in outlook Ian Outlook and VBA 2 June 27th 06 05:59 PM
Outlook should have a function for counting the number of days Bruce McGinn Outlook - Calandaring 0 January 30th 06 01:01 PM


All times are GMT +1. The time now is 04:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.