ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   errrors while trying to delete a commandbutton (https://www.excelbanter.com/excel-programming/365488-errrors-while-trying-delete-commandbutton.html)

funkymonkUK[_195_]

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


Ardus Petus

errrors while trying to delete a commandbutton
 
Sheets'"information").oleobjects("updater").delete

HTH
--
AP

"funkymonkUK" a
écrit dans le message de news:
...

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




funkymonkUK[_201_]

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


funkymonkUK[_200_]

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


funkymonkUK[_199_]

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


funkymonkUK[_198_]

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


Mark Driscol[_2_]

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



funkymonkUK[_206_]

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


funkymonkUK[_207_]

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


Chip Pearson

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




Ardus Petus

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




funkymonkUK[_210_]

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