Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dean,
Try: Tools | Macro | Security |Trusted Publisher Tab [x] Trust access to Visual Basic Project --- Regards. Norman "Dean@ERYC" wrote in message ... I have a 'master' workbook which opens other 'Data' workbooks and does various calculations/data validations on these workbooks. Before saving the 'Data' workbooks a Module from the master containing several macros is copied across to the 'Data' spreadsheet. The code below works in Excel 2000 but not in 2003. It displays an error: Run-time error '1004': Programmatic access to Visual Basic Project is not trusted 'copy macro to validated wookbook Dim FName As String With Workbooks("TEAMS_Master.xls") FName = .Path & "\code.txt" .VBProject.VBComponents("Module9").Export FName End With Workbooks("IDBev.xls").VBProject.VBComponents.Impo rt FName Thanks for your help, Dean. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy workbook without Macros | Excel Programming | |||
How to copy a workbook so the buttons run the macros? | Excel Discussion (Misc queries) | |||
weird saving of a document with macros resulting with macros being transfered to the copy | Excel Programming | |||
Open workbook-macros enabled, opening another with macros | Excel Programming | |||
Copy Macros and VB code from one workbook to another | Excel Programming |