Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem occurs when upgrading Excel from 97 to 2002

When I was upgrading our program from Excel 97 to Excel
2002, the code that worked well with Excel 97, now fails
in Excel 2002. Please see the following line of failure.

Set theCode = ThisWorkbook.VBProject.VBComponents
("thisworkbook").CodeModule

When debugging, I found the following error message.

Run-time error 1004, Programmatic access to Visual Basic
Project is not trusted.

Does anyone have any suggestion? Thanks in advance!




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Problem occurs when upgrading Excel from 97 to 2002

This one got me too in the beginning. Tools, Macro, Security, Trusted
Sources, Trust Access to Visual Basic Project!

--

Julian Milano


"YATES" wrote in message
...
When I was upgrading our program from Excel 97 to Excel
2002, the code that worked well with Excel 97, now fails
in Excel 2002. Please see the following line of failure.

Set theCode = ThisWorkbook.VBProject.VBComponents
("thisworkbook").CodeModule

When debugging, I found the following error message.

Run-time error 1004, Programmatic access to Visual Basic
Project is not trusted.

Does anyone have any suggestion? Thanks in advance!






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem occurs when upgrading Excel from 97 to 2002

Thanks so much, Julian.


-----Original Message-----
This one got me too in the beginning. Tools, Macro,

Security, Trusted
Sources, Trust Access to Visual Basic Project!

--

Julian Milano


"YATES" wrote in

message
...
When I was upgrading our program from Excel 97 to Excel
2002, the code that worked well with Excel 97, now fails
in Excel 2002. Please see the following line of failure.

Set theCode = ThisWorkbook.VBProject.VBComponents
("thisworkbook").CodeModule

When debugging, I found the following error message.

Run-time error 1004, Programmatic access to Visual Basic
Project is not trusted.

Does anyone have any suggestion? Thanks in advance!






.

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
Problem upgrading to Excel 2007 Stef Excel Discussion (Misc queries) 7 July 13th 08 10:34 AM
Any problem of migration for upgrading Office 2007 from Office 200 Eric Excel Discussion (Misc queries) 3 September 6th 07 04:22 PM
Excel 2002 CDO Email Problem Mark Bigelow Excel Programming 0 January 16th 04 03:46 PM
Problem with Excel 2002 Doc Excel Programming 8 December 29th 03 03:52 AM
problem in excel 2002 and windows xp aries58 Excel Programming 6 November 26th 03 04:43 AM


All times are GMT +1. The time now is 10:25 AM.

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"