![]() |
Including an inputbox within a macro
Ok, I need to create a button with a macro attached which allows me to delete columns within a worksheet, in this macro I must include an input box which asks the user to either identify as 'the treasurer' and delete all 'financial' data Sheets("Membership").Select Range("G3:H17,K3:K17").Select Range("K3").Activate Selection.ClearContents End Sub or identify as 'the registrar' and delete all 'results' data Sheets("Results").Select Range("E3:I17").Select Selection.ClearContents End Sub how do I this? can anybody give me an example that I can copy and paste into the macro?? -- Drummy ------------------------------------------------------------------------ Drummy's Profile: http://www.excelforum.com/member.php...o&userid=34780 View this thread: http://www.excelforum.com/showthread...hreadid=549311 |
Including an inputbox within a macro
see other thread (excel.misc)
-- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Drummy" wrote in message ... Ok, I need to create a button with a macro attached which allows me to delete columns within a worksheet, in this macro I must include an input box which asks the user to either identify as 'the treasurer' and delete all 'financial' data Sheets("Membership").Select Range("G3:H17,K3:K17").Select Range("K3").Activate Selection.ClearContents End Sub or identify as 'the registrar' and delete all 'results' data Sheets("Results").Select Range("E3:I17").Select Selection.ClearContents End Sub how do I this? can anybody give me an example that I can copy and paste into the macro?? -- Drummy ------------------------------------------------------------------------ Drummy's Profile: http://www.excelforum.com/member.php...o&userid=34780 View this thread: http://www.excelforum.com/showthread...hreadid=549311 |
All times are GMT +1. The time now is 10:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com