![]() |
Still need help - Clear a cell upon workbook Close
The subroutine did not run as I received the Macro Disabled message. I
clicked OK, and next time I opened the workbook, I didn't get the Macro Warning, but the subroutine apparently didn't run as the chosen cells were not blank. I don't want people who use my workbook to have to deal with macro warnings. Is this something that must be set on each user's computer, or can I set it in my workbook so the subroutine automatically runs on everyone's computer? Do I need to get a Certificate? Here's my code. Are the () and the " " necessary? I'm working in Sheet 8 and want Cells A124 and A125 to clear upon Close. Private Sub Workbook_BeforeClose(Cancel As Boolean) Sheets("Sheet8").Range("A124").ClearContents Sheets("Sheet8").Range("A125").ClearContents End Sub |
Still need help - Clear a cell upon workbook Close
See your earlier post -- FSt1 and I both replied there. Plus he added a line
of code to the macro to make it work more smoothly: http://www.microsoft.com/office/comm...8-206af6270f2d "Gary" wrote: The subroutine did not run as I received the Macro Disabled message. I clicked OK, and next time I opened the workbook, I didn't get the Macro Warning, but the subroutine apparently didn't run as the chosen cells were not blank. I don't want people who use my workbook to have to deal with macro warnings. Is this something that must be set on each user's computer, or can I set it in my workbook so the subroutine automatically runs on everyone's computer? Do I need to get a Certificate? Here's my code. Are the () and the " " necessary? I'm working in Sheet 8 and want Cells A124 and A125 to clear upon Close. Private Sub Workbook_BeforeClose(Cancel As Boolean) Sheets("Sheet8").Range("A124").ClearContents Sheets("Sheet8").Range("A125").ClearContents End Sub |
Still need help - Clear a cell upon workbook Close
Thanks! Sorry about the duplicate post of my question. I didn't see the first
one in my list so I asked it again. Discovered later I needed to expand my Notifications to see all my questions. You've been helpful! "JLatham" wrote: See your earlier post -- FSt1 and I both replied there. Plus he added a line of code to the macro to make it work more smoothly: http://www.microsoft.com/office/comm...8-206af6270f2d "Gary" wrote: The subroutine did not run as I received the Macro Disabled message. I clicked OK, and next time I opened the workbook, I didn't get the Macro Warning, but the subroutine apparently didn't run as the chosen cells were not blank. I don't want people who use my workbook to have to deal with macro warnings. Is this something that must be set on each user's computer, or can I set it in my workbook so the subroutine automatically runs on everyone's computer? Do I need to get a Certificate? Here's my code. Are the () and the " " necessary? I'm working in Sheet 8 and want Cells A124 and A125 to clear upon Close. Private Sub Workbook_BeforeClose(Cancel As Boolean) Sheets("Sheet8").Range("A124").ClearContents Sheets("Sheet8").Range("A125").ClearContents End Sub |
All times are GMT +1. The time now is 05:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com