![]() |
errrors while trying to delete a commandbutton
hi I have a commandbutton placed on a sheet call "Information" the Commandbuttons Name is Updater. i have the following piece of code Private Sub updater_Click() Range("a1").Activate Sheets("information").Updater.Delete End Sub however it does not seem to work? The purpose of the commandbutton is to run a once off macro. -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555947 |
errrors while trying to delete a commandbutton
sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-define error. i have no idea why this could be happening -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=55594 |
errrors while trying to delete a commandbutton
sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-define error. i have no idea why this could be happening -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=55594 |
errrors while trying to delete a commandbutton
sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-define error. i have no idea why this could be happening -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=55594 |
errrors while trying to delete a commandbutton
sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-define error. i have no idea why this could be happening -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=55594 |
errrors while trying to delete a commandbutton
Your code worked for me in Excel 2002.
Mark funkymonkUK wrote: sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-defined error. i have no idea why this could be happening. -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555947 |
errrors while trying to delete a commandbutton
i have excel 2000 if that helps -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555947 |
errrors while trying to delete a commandbutton
i have excel 2000 if that helps -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555947 |
errrors while trying to delete a commandbutton
You code works for me in Excel 2003. Ensure that the sheet is not
protected. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "funkymonkUK" wrote in message ... sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-defined error. i have no idea why this could be happening. -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555947 |
errrors while trying to delete a commandbutton
Please send your faulty workbook as attachment to
HTH -- AP "funkymonkUK" a écrit dans le message de news: ... sorry i am having troubles with the code. I have the following Private Sub updater_Click() Range("a1").Activate Sheets("Information").OLEObjects("updater").Delete End Sub and am getting a Runtime 1004 : Application-Defined or object-defined error. i have no idea why this could be happening. -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=555947 |
errrors while trying to delete a commandbutton
yeah sorry it was password Protected works like a treat -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=55594 |
All times are GMT +1. The time now is 12:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com