Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 28th, 2005, 05:09 PM
mikewbrown mikewbrown is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Vancouver, BC
Posts: 12 mikewbrown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 57 m 53 sec
Reputation Power: 0
Question Import VB Module in Excel File

Hello!

I have an excel file that users will use to build their own custom version into a new file. Now I would like to insert a formatting macro into the users new custom build file, but I can't get excel to add it (Error 1004: Programmatic access to Visual Basic Project is not trusted). Here is simple version of my code, any ideas? I think I need to create a Module Object first, but I don't know how to do this...

Workbooks.Add

mac_file = ThisWorkbook.Path & "\inv_plan_mac.bas"

Set VBP = ActiveWorkbook.VBProject
With VBP.VBComponents
.Import mac_file
End With

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Import VB Module in Excel File


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT