- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- BackOffice Products
- >
- Excel macro warning
BackOffice Products
1752580
Members
3134
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 02:38 AM
тАО06-04-2004 02:38 AM
Re: Excel macro warning
Ganesh,
I own created the excel file from new. I used a macro to make easy some works and then I removed the unique macro written. However I already checked for macro menu.
Thanks
Antonio Vigliotti
I own created the excel file from new. I used a macro to make easy some works and then I removed the unique macro written. However I already checked for macro menu.
Thanks
Antonio Vigliotti
Antonio Maria Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 02:48 AM
тАО06-04-2004 02:48 AM
Re: Excel macro warning
Ganesh is almost there.
Goto Tools->Macro-> Visual Basic Editor. On the left, besides 'Microsoft Excel Objects', you should also see 'Modules'. Check each object underneath 'Modules' and if there's no code written in them delete the 'Modules' branch completely. The warning message should be gone.
Goto Tools->Macro-> Visual Basic Editor. On the left, besides 'Microsoft Excel Objects', you should also see 'Modules'. Check each object underneath 'Modules' and if there's no code written in them delete the 'Modules' branch completely. The warning message should be gone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2009 02:00 AM
тАО05-30-2009 02:00 AM
Re: Excel macro warning
Hi,
Understood the problem, i thought of that u are using some excel workbook open event macros, and also while saving and before sending to customer you might not be delete this workbook open even macros i hope, this macro while opening the workbook it will automatically work without users permission if the macro security level is high it will ask the user to enable or disable macros
Just go to the visual basic editor and double click the "Thisworkbook" object in the left side VBAproject and insert the below code this code will do the action of while before closing your workbook this macro will delete all macro from your workbook so that now your macro workbook will be macro free workbook...
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim x As Integer
Dim Proceed As VbMsgBoxResult
Dim Prompt As String
Dim Title As String
Prompt = "Are you certain that you want to delete all the VBA Code from " & _
ActiveWorkbook.Name & "?"
Title = "Verify Procedure"
Proceed = MsgBox(Prompt, vbYesNo + vbQuestion, Title)
If Proceed = vbNo Then
MsgBox "Procedure Canceled", vbInformation, "Procedure Aborted"
Exit Sub
End If
On Error Resume Next
With ActiveWorkbook.VBProject
For x = .VBComponents.Count To 1 Step -1
.VBComponents.Remove .VBComponents(x)
Next x
For x = .VBComponents.Count To 1 Step -1
.VBComponents(x).CodeModule.DeleteLines _
1, .VBComponents(x).CodeModule.CountOfLines
Next x
End With
On Error GoTo 0
End Sub
before using this code you should take a back up of your macro file because it will erase all macros in your workbook
This macro running prerequestics is required
Tools - options - Macro settings - Trust access to the VBA project object model should be enabled
Pls let me know if any scrutiny...
Thnx
Ganesan R
Understood the problem, i thought of that u are using some excel workbook open event macros, and also while saving and before sending to customer you might not be delete this workbook open even macros i hope, this macro while opening the workbook it will automatically work without users permission if the macro security level is high it will ask the user to enable or disable macros
Just go to the visual basic editor and double click the "Thisworkbook" object in the left side VBAproject and insert the below code this code will do the action of while before closing your workbook this macro will delete all macro from your workbook so that now your macro workbook will be macro free workbook...
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim x As Integer
Dim Proceed As VbMsgBoxResult
Dim Prompt As String
Dim Title As String
Prompt = "Are you certain that you want to delete all the VBA Code from " & _
ActiveWorkbook.Name & "?"
Title = "Verify Procedure"
Proceed = MsgBox(Prompt, vbYesNo + vbQuestion, Title)
If Proceed = vbNo Then
MsgBox "Procedure Canceled", vbInformation, "Procedure Aborted"
Exit Sub
End If
On Error Resume Next
With ActiveWorkbook.VBProject
For x = .VBComponents.Count To 1 Step -1
.VBComponents.Remove .VBComponents(x)
Next x
For x = .VBComponents.Count To 1 Step -1
.VBComponents(x).CodeModule.DeleteLines _
1, .VBComponents(x).CodeModule.CountOfLines
Next x
End With
On Error GoTo 0
End Sub
before using this code you should take a back up of your macro file because it will erase all macros in your workbook
This macro running prerequestics is required
Tools - options - Macro settings - Trust access to the VBA project object model should be enabled
Pls let me know if any scrutiny...
Thnx
Ganesan R
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP