Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
#12
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Forms CommandButton on Worksheet | Excel Discussion (Misc queries) | |||
Commandbutton | Excel Programming | |||
Delete a Commandbutton from another Workbook | Excel Programming | |||
CommandButton | Excel Programming | |||
Commandbutton | Excel Programming |