Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel 2003 Macro Certificate Failure - Help!

Hello,

I have an Excel 2003 spreadsheet/VBA application that is used to export data
to customers from a central database. The spreadsheet includes VBA macros
that facilitate viewing of the spreadsheet and allow the customer to modify
data. The macros are signed using an Office 2003 digital signature. The
workbook data is not signed.

The spreadsheet also includes an upload function that emails a spreadsheet
(that was modified by the customer) back to a central mailbox where I use a
SQL server, ISQL, C# batch application to automatically extract the data and
update our database. After extracting the spreadsheet from an uploaded email
message, the automated process opens the spreadsheet with an argument that
tells it to self-extract its data to a text file. The extracted data is then
loaded into SQL server for processing.

This process has been working great until recently. I added a few new edit
routines that aren't even executed when the problem occurs. Now when I
attempt to do the self extraction process for an uploaded spreadsheet, I get
the following error:

"The macros in this file do not match the digital signature. Only a macro
virus would cuse this. Please scan for viruses, and notify the publisher of
this document. Macros will be disabled."

I'm pretty sure this is not a virus. I've created 2 test spreadsheets,
Test1.xls and Test2.xls, that will demonstrate this problem (email me if
you'd like copies of these spreadsheets). The spreadsheet's macros are signed
with an Office 2003 digital certificate. The only difference between the two
spreadsheets is that Module1 in Test1.xls contains 5 Subs and 1 Function.
Only the first 2 Subs are actually executed in the test. Test2.xls only
contains the first 2 Subs.

To run the test, you open one of the spreadsheets, click Do Test, close the
spreadsheet, click Yes when promted to save the changes and then reopen the
spreadsheet. Test1.xls gets the above errror. Test2.xls does not get the
above error. Again, the only difference between Test1.xls and Test2.xls is
that the last 4 routines that are in Test1.xls Module1 are not in Test2.xls
Module1 and these routines are not executed when Do Test is clicked.

It doesn't make any sense why this would be happening. Help!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 Macro Certificate Failure - Help!

Bill-
I believe it might be due to the default Office 2003 VBA security settings
that "do not trust unsigned VBAapplications" by default. You can download
the free Microsoft Office Resource Kit (ORK) at:
http://office.microsoft.com/en-us/FX011511471033.aspx
to allow you to easily change the Office 2003 VBA security settings.
Jerry



"Bill@DOT" wrote in message
...
Hello,

I have an Excel 2003 spreadsheet/VBA application that is used to export
data
to customers from a central database. The spreadsheet includes VBA macros
that facilitate viewing of the spreadsheet and allow the customer to
modify
data. The macros are signed using an Office 2003 digital signature. The
workbook data is not signed.

The spreadsheet also includes an upload function that emails a spreadsheet
(that was modified by the customer) back to a central mailbox where I use
a
SQL server, ISQL, C# batch application to automatically extract the data
and
update our database. After extracting the spreadsheet from an uploaded
email
message, the automated process opens the spreadsheet with an argument that
tells it to self-extract its data to a text file. The extracted data is
then
loaded into SQL server for processing.

This process has been working great until recently. I added a few new edit
routines that aren't even executed when the problem occurs. Now when I
attempt to do the self extraction process for an uploaded spreadsheet, I
get
the following error:

"The macros in this file do not match the digital signature. Only a macro
virus would cuse this. Please scan for viruses, and notify the publisher
of
this document. Macros will be disabled."

I'm pretty sure this is not a virus. I've created 2 test spreadsheets,
Test1.xls and Test2.xls, that will demonstrate this problem (email me if
you'd like copies of these spreadsheets). The spreadsheet's macros are
signed
with an Office 2003 digital certificate. The only difference between the
two
spreadsheets is that Module1 in Test1.xls contains 5 Subs and 1 Function.
Only the first 2 Subs are actually executed in the test. Test2.xls only
contains the first 2 Subs.

To run the test, you open one of the spreadsheets, click Do Test, close
the
spreadsheet, click Yes when promted to save the changes and then reopen
the
spreadsheet. Test1.xls gets the above errror. Test2.xls does not get the
above error. Again, the only difference between Test1.xls and Test2.xls is
that the last 4 routines that are in Test1.xls Module1 are not in
Test2.xls
Module1 and these routines are not executed when Do Test is clicked.

It doesn't make any sense why this would be happening. Help!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel 2003 Macro Certificate Failure - Help!

Thanks Jerry,

I downloaded ORK.exe and installed the resource Kit. The CHM file for Office
2003 is a bit stingy on information. Can you steer me to a file that will
help with the Office 2003 VBA security settings?

Also, if this is a security sentting issue, why would I be able to prevent
the error I'm getting simply by deleting routines in my VBA code that aren't
even executed? Is this a "feature"? If it is, its not a very friendly
feature. :(



"Jerry N" wrote:

Bill-
I believe it might be due to the default Office 2003 VBA security settings
that "do not trust unsigned VBAapplications" by default. You can download
the free Microsoft Office Resource Kit (ORK) at:
http://office.microsoft.com/en-us/FX011511471033.aspx
to allow you to easily change the Office 2003 VBA security settings.
Jerry



"Bill@DOT" wrote in message
...
Hello,

I have an Excel 2003 spreadsheet/VBA application that is used to export
data
to customers from a central database. The spreadsheet includes VBA macros
that facilitate viewing of the spreadsheet and allow the customer to
modify
data. The macros are signed using an Office 2003 digital signature. The
workbook data is not signed.

The spreadsheet also includes an upload function that emails a spreadsheet
(that was modified by the customer) back to a central mailbox where I use
a
SQL server, ISQL, C# batch application to automatically extract the data
and
update our database. After extracting the spreadsheet from an uploaded
email
message, the automated process opens the spreadsheet with an argument that
tells it to self-extract its data to a text file. The extracted data is
then
loaded into SQL server for processing.

This process has been working great until recently. I added a few new edit
routines that aren't even executed when the problem occurs. Now when I
attempt to do the self extraction process for an uploaded spreadsheet, I
get
the following error:

"The macros in this file do not match the digital signature. Only a macro
virus would cuse this. Please scan for viruses, and notify the publisher
of
this document. Macros will be disabled."

I'm pretty sure this is not a virus. I've created 2 test spreadsheets,
Test1.xls and Test2.xls, that will demonstrate this problem (email me if
you'd like copies of these spreadsheets). The spreadsheet's macros are
signed
with an Office 2003 digital certificate. The only difference between the
two
spreadsheets is that Module1 in Test1.xls contains 5 Subs and 1 Function.
Only the first 2 Subs are actually executed in the test. Test2.xls only
contains the first 2 Subs.

To run the test, you open one of the spreadsheets, click Do Test, close
the
spreadsheet, click Yes when promted to save the changes and then reopen
the
spreadsheet. Test1.xls gets the above errror. Test2.xls does not get the
above error. Again, the only difference between Test1.xls and Test2.xls is
that the last 4 routines that are in Test1.xls Module1 are not in
Test2.xls
Module1 and these routines are not executed when Do Test is clicked.

It doesn't make any sense why this would be happening. Help!





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 Macro Certificate Failure - Help!

Bill-
The following KB article will show you how to use ORK to change the VBA
security settings. I run an Excel data acquisition program using VBA. We
just upgraded to office 2003, and I had this VBA security problem on every
computer in the orgazination that I tried to use with my acquisition
program. Using ORK to change the settings is a little cumbersome; I have a
registry modification script file that is much easier to use and I can send
it to you if you wish.
Jerry
http://support.microsoft.com/kb/817112


"Bill@DOT" wrote in message
...
Thanks Jerry,

I downloaded ORK.exe and installed the resource Kit. The CHM file for
Office
2003 is a bit stingy on information. Can you steer me to a file that will
help with the Office 2003 VBA security settings?

Also, if this is a security sentting issue, why would I be able to prevent
the error I'm getting simply by deleting routines in my VBA code that
aren't
even executed? Is this a "feature"? If it is, its not a very friendly
feature. :(



"Jerry N" wrote:

Bill-
I believe it might be due to the default Office 2003 VBA security
settings
that "do not trust unsigned VBAapplications" by default. You can
download
the free Microsoft Office Resource Kit (ORK) at:
http://office.microsoft.com/en-us/FX011511471033.aspx
to allow you to easily change the Office 2003 VBA security settings.
Jerry



"Bill@DOT" wrote in message
...
Hello,

I have an Excel 2003 spreadsheet/VBA application that is used to export
data
to customers from a central database. The spreadsheet includes VBA
macros
that facilitate viewing of the spreadsheet and allow the customer to
modify
data. The macros are signed using an Office 2003 digital signature. The
workbook data is not signed.

The spreadsheet also includes an upload function that emails a
spreadsheet
(that was modified by the customer) back to a central mailbox where I
use
a
SQL server, ISQL, C# batch application to automatically extract the
data
and
update our database. After extracting the spreadsheet from an uploaded
email
message, the automated process opens the spreadsheet with an argument
that
tells it to self-extract its data to a text file. The extracted data is
then
loaded into SQL server for processing.

This process has been working great until recently. I added a few new
edit
routines that aren't even executed when the problem occurs. Now when I
attempt to do the self extraction process for an uploaded spreadsheet,
I
get
the following error:

"The macros in this file do not match the digital signature. Only a
macro
virus would cuse this. Please scan for viruses, and notify the
publisher
of
this document. Macros will be disabled."

I'm pretty sure this is not a virus. I've created 2 test spreadsheets,
Test1.xls and Test2.xls, that will demonstrate this problem (email me
if
you'd like copies of these spreadsheets). The spreadsheet's macros are
signed
with an Office 2003 digital certificate. The only difference between
the
two
spreadsheets is that Module1 in Test1.xls contains 5 Subs and 1
Function.
Only the first 2 Subs are actually executed in the test. Test2.xls only
contains the first 2 Subs.

To run the test, you open one of the spreadsheets, click Do Test, close
the
spreadsheet, click Yes when promted to save the changes and then reopen
the
spreadsheet. Test1.xls gets the above errror. Test2.xls does not get
the
above error. Again, the only difference between Test1.xls and Test2.xls
is
that the last 4 routines that are in Test1.xls Module1 are not in
Test2.xls
Module1 and these routines are not executed when Do Test is clicked.

It doesn't make any sense why this would be happening. Help!







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
Excel 2003 Copy Paste Failure Liquid Excel Discussion (Misc queries) 1 December 11th 09 07:03 AM
Failure to print in Excel 2007 but not in 2003 lwolv Excel Discussion (Misc queries) 0 December 28th 06 05:36 PM
Excel 2003 update failure Jamie New Users to Excel 0 April 7th 06 02:52 AM
Howeractivate Excel after a macro failure John Excel Worksheet Functions 1 March 3rd 06 09:44 PM
Excel 2003 Link failure Alexander Fry Links and Linking in Excel 0 May 20th 05 02:51 AM


All times are GMT +1. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"