Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Word, PowerPoint, Outlook, and Other Office Products > Excel macro security


Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2002, 07:48 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default Excel macro security


Hi, i have some problems with the macro security in Excel. I've made an Excel file with a button who send an email. The Excel file will be use by a lot of user.. But if the macro security of the user is set to medium or high, it will ask a question like:

Do you want to enable or disable macro?

wiith three choices
enable, disable, cancel

But what can i do the drop this message????
__________________
BUD
Reply With Quote
  #2  
Old 07-31-2002, 07:50 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

Create a digit signature.
__________________
-Carl
Reply With Quote
  #3  
Old 07-31-2002, 07:52 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

how can I create this?
__________________
BUD
Reply With Quote
  #4  
Old 07-31-2002, 08:20 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

There are some instructions here. Hopefully, it will work.
__________________
-Carl
Reply With Quote
  #5  
Old 07-31-2002, 08:33 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

But can you explain me what is it, the digit signature? Do i have to create this on each machine, or is just on the file?
__________________
BUD
Reply With Quote
  #6  
Old 07-31-2002, 09:00 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

From what I understand just on the VBA program. I was going to be trying it out early next week, since I have the same problem as you.
__________________
-Carl
Reply With Quote
  #7  
Old 07-31-2002, 09:02 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

okay, so if i understand, i have to create my digit signature on each machine. And he don't have any other solution?
__________________
BUD
Reply With Quote
  #8  
Old 07-31-2002, 09:08 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

No, you attach your digital signature to your program. Then install your program on each computer.
__________________
-Carl
Reply With Quote
  #9  
Old 07-31-2002, 09:15 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

It's not a program. It's only an Excel file with a button who send by email this file. Do you understand what I mean? So the user fill the file, with his personal information, and when he click on the button, the file is saved, and send at a person. So i don't want any error message about the security.
__________________
BUD
Reply With Quote
  #10  
Old 07-31-2002, 09:25 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

Then goto the excel VBA (where your code for your email button is). Tools -> Digital Signature. Choose a signature to add to your Excel code (after you have created a signature first.) Then destribute your excel file.
__________________
-Carl
Reply With Quote
  #11  
Old 07-31-2002, 09:29 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

Okay. And with that, event if the security is set to High, or medium, it will never ask to enable or disable macro?
__________________
BUD
Reply With Quote
  #12  
Old 07-31-2002, 09:41 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

I believe it will ask "if you wish to trust this source?" If you select it as a source to always trust then it will not ask again. That is from what I understand. Like I said earlier, I'll be doing this next week.
__________________
-Carl
Reply With Quote
  #13  
Old 07-31-2002, 09:43 AM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

okay, thanks
I will try it. And if it's work, i will write back.
__________________
BUD
Reply With Quote
  #14  
Old 07-31-2002, 12:02 PM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

Hey Carl, i tried it. When you open the file, he has an Security Warning. But this warning comes just at the first timeyou open it.
__________________
BUD
Reply With Quote
  #15  
Old 07-31-2002, 12:16 PM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

Yeah, I thought so. Does it ask you if you always want to trust this source?
__________________
-Carl
Reply With Quote
  #16  
Old 07-31-2002, 12:39 PM
BUD's Avatar
BUD BUD is offline
Centurion
 
Join Date: Jul 2002
Location: Montreal
Posts: 193
Default

yes, you can check this option in the warning!!!!!!!
__________________
BUD
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->