Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Command button on worksheet

I'm relatively new to Excel VBA.

I've added a command button to a worksheet, which I want to use to open a
userform. The code behind the button works (used debug to make sure), but I
cannot get the Click event of the button to work on the spreadsheet. When I
click on the button, it just selects it for editing.

Dale

--
Email address is not valid.
Please reply to newsgroup only.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Command button on worksheet

Disregard!

Apparantly, all I had to do was close the workbook and open it again.

Duh!
--
Email address is not valid.
Please reply to newsgroup only.


"Dale Fye" wrote:

I'm relatively new to Excel VBA.

I've added a command button to a worksheet, which I want to use to open a
userform. The code behind the button works (used debug to make sure), but I
cannot get the Click event of the button to work on the spreadsheet. When I
click on the button, it just selects it for editing.

Dale

--
Email address is not valid.
Please reply to newsgroup only.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command button on worksheet

Hi Dale,

Try taking it out of Design Mode. On Control Toolbox Menu, click on
Design Mode.

See if that works

Paul

Dale Fye wrote:
I'm relatively new to Excel VBA.

I've added a command button to a worksheet, which I want to use to open a
userform. The code behind the button works (used debug to make sure), but I
cannot get the Click event of the button to work on the spreadsheet. When I
click on the button, it just selects it for editing.

Dale

--
Email address is not valid.
Please reply to newsgroup only.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Command button on worksheet

Also, there is an icon that looks like a carpenters square and a pencil,
under the toolbox toolbar, it toggles between desing mode and exit desing
mode. So you don't necessarily need to close the book.
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Dale Fye" wrote:

Disregard!

Apparantly, all I had to do was close the workbook and open it again.

Duh!
--
Email address is not valid.
Please reply to newsgroup only.


"Dale Fye" wrote:

I'm relatively new to Excel VBA.

I've added a command button to a worksheet, which I want to use to open a
userform. The code behind the button works (used debug to make sure), but I
cannot get the Click event of the button to work on the spreadsheet. When I
click on the button, it just selects it for editing.

Dale

--
Email address is not valid.
Please reply to newsgroup only.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Command button on worksheet

Dale

I wouldn't go as far as saying "Duh".

The reason for the "selection" is that you were in Design mode - next time
click on the triangle in the left hand corner of the "control toolbox".

Mistakes like this are quite common in an Excel environment - live with it.

Regards

SysAccountant


"Dale Fye" wrote:

Disregard!

Apparantly, all I had to do was close the workbook and open it again.

Duh!
--
Email address is not valid.
Please reply to newsgroup only.


"Dale Fye" wrote:

I'm relatively new to Excel VBA.

I've added a command button to a worksheet, which I want to use to open a
userform. The code behind the button works (used debug to make sure), but I
cannot get the Click event of the button to work on the spreadsheet. When I
click on the button, it just selects it for editing.

Dale

--
Email address is not valid.
Please reply to newsgroup only.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of Forms Command-button on Worksheet Jim May Excel Discussion (Misc queries) 12 November 13th 06 06:08 PM
Command Button on worksheet Jack Excel Programming 4 June 12th 06 11:51 AM
command button on worksheet PhilC Excel Programming 1 May 19th 06 05:09 PM
Worksheet Command Button will not work willpwr Excel Worksheet Functions 0 May 16th 06 08:13 PM
Command button on a protected worksheet dad1nm Excel Programming 0 December 13th 04 07:53 PM


All times are GMT +1. The time now is 11:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"