Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can i check "trust access to Visual Basic Project" under tools, macro,
security, using macro.. please help... Thanks! Boss |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No, it would make a slight mockery of any security pretence don't you think.
But you can check it and tell the user to do it. Function VBAIsTrusted() As Boolean Dim mpVBC As Object Dim mpAlerts As Boolean mpAlerts = Application.DisplayAlerts Application.DisplayAlerts = False On Error Resume Next Set mpVBC = ThisWorkbook.VBProject.VBComponents.Item(1) On Error GoTo 0 Application.DisplayAlerts = mpAlerts VBAIsTrusted = Not mpVBC Is Nothing End Function -- __________________________________ HTH Bob "Boss" wrote in message ... Can i check "trust access to Visual Basic Project" under tools, macro, security, using macro.. please help... Thanks! Boss |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the reply Bob,
But something can be done using the commandbar ID. I found it in a different community. Thanks! "Bob Phillips" wrote: No, it would make a slight mockery of any security pretence don't you think. But you can check it and tell the user to do it. Function VBAIsTrusted() As Boolean Dim mpVBC As Object Dim mpAlerts As Boolean mpAlerts = Application.DisplayAlerts Application.DisplayAlerts = False On Error Resume Next Set mpVBC = ThisWorkbook.VBProject.VBComponents.Item(1) On Error GoTo 0 Application.DisplayAlerts = mpAlerts VBAIsTrusted = Not mpVBC Is Nothing End Function -- __________________________________ HTH Bob "Boss" wrote in message ... Can i check "trust access to Visual Basic Project" under tools, macro, security, using macro.. please help... Thanks! Boss |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Care to show us, I would be intrigued to see how the security is
circumvented. -- __________________________________ HTH Bob "Boss" wrote in message ... Thanks for the reply Bob, But something can be done using the commandbar ID. I found it in a different community. Thanks! "Bob Phillips" wrote: No, it would make a slight mockery of any security pretence don't you think. But you can check it and tell the user to do it. Function VBAIsTrusted() As Boolean Dim mpVBC As Object Dim mpAlerts As Boolean mpAlerts = Application.DisplayAlerts Application.DisplayAlerts = False On Error Resume Next Set mpVBC = ThisWorkbook.VBProject.VBComponents.Item(1) On Error GoTo 0 Application.DisplayAlerts = mpAlerts VBAIsTrusted = Not mpVBC Is Nothing End Function -- __________________________________ HTH Bob "Boss" wrote in message ... Can i check "trust access to Visual Basic Project" under tools, macro, security, using macro.. please help... Thanks! Boss |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You were correct. Its not possible..
Thanks! Boss "Bob Phillips" wrote: Care to show us, I would be intrigued to see how the security is circumvented. -- __________________________________ HTH Bob "Boss" wrote in message ... Thanks for the reply Bob, But something can be done using the commandbar ID. I found it in a different community. Thanks! "Bob Phillips" wrote: No, it would make a slight mockery of any security pretence don't you think. But you can check it and tell the user to do it. Function VBAIsTrusted() As Boolean Dim mpVBC As Object Dim mpAlerts As Boolean mpAlerts = Application.DisplayAlerts Application.DisplayAlerts = False On Error Resume Next Set mpVBC = ThisWorkbook.VBProject.VBComponents.Item(1) On Error GoTo 0 Application.DisplayAlerts = mpAlerts VBAIsTrusted = Not mpVBC Is Nothing End Function -- __________________________________ HTH Bob "Boss" wrote in message ... Can i check "trust access to Visual Basic Project" under tools, macro, security, using macro.. please help... Thanks! Boss |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trust Access to Visual Basic Project | Excel Programming | |||
Trust access to visual basic project is grayed out | Excel Programming | |||
Trust Access to Visual Basic Project | Excel Programming | |||
Trust access to visual basic project in XP systems | Excel Discussion (Misc queries) | |||
Trust access to visual basic project greyed out | Excel Discussion (Misc queries) |