Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Problems Attaching Macros to Command Button

Hi,

You can only "Assign macro" to the controls from the Forms
toolbar (I prefer those: simpler and less buggy).

To "assign" a macro to the controls you used (which I
guess come from the control toolbox toolbar), you simply
double-click the control in design mode or rightclick them
and choose view code.

Regards,

Jan Karel Pieterse
Excel TA/MVP

-----Original Message-----
I have been trying to attach a macro to a command button

and have been
unable to access 'Assign Macro' as per the process listed

in MS Excel
XP help as below, without much luck. The function does

not seem to
come up. I have several macros written and cannot link

them to
buttons. I have been able to use keyboard shortcuts i.e.

Ctrl+a etc.

Is Excel needing something switched on? Does anyone know

what is
wrong?

Jim

MS EXCEL XP HELP

Start a macro from a button or graphic control

*Click the button or graphic control so that sizing

handles (sizing
handle: One of the small circles or squares that appears

at the corners
and sides of a selected object. You drag these handles to

change the
size of the object.) appear.
*With the graphic object selected, right-click a sizing

handle of the
button or graphic object to display the shortcut menu

(shortcut menu: A
menu that shows a list of commands relevant to a

particular item. To
display a shortcut menu, right-click an item or press

SHIFT+F10.).
*On the shortcut menu, click Assign Macro.

Do one of the following:
To assign an existing macro (macro: An action or a set of

actions you
can use to automate tasks. Macros are recorded in the

Visual Basic for
Applications programming language.) to the button or

graphic object,
enter the name of the macro in the Macro name box, and

then click OK.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from

http://www.ExcelForum.com/

.

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
Two Macros under One command button Rony Excel Discussion (Misc queries) 1 March 11th 06 12:11 PM
Command Button protection problems???? Chris Watson Excel Worksheet Functions 3 February 25th 06 03:24 PM
Command Button problems steve Excel Programming 3 September 17th 03 03:47 PM
Command Button problems Ed Lisay Excel Programming 1 September 16th 03 10:29 AM
Attaching Macros to Custom Buttons Jack O Excel Programming 0 August 21st 03 10:49 PM


All times are GMT +1. The time now is 07:12 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"