Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
johncouzins
 
Posts: n/a
Default Macro command problem


I am trying to assign a macro to a command button. The only way i know
how to do it is to insert a command button and then when i release the
mouse the "assign button" should come up. But its not doing it for some
reason.

And when i try to copy and paste the code into the button it brings me
up a load of errors.

Is there any other way i can assign a macro?


Cheers



John


--
johncouzins
------------------------------------------------------------------------
johncouzins's Profile: http://www.excelforum.com/member.php...o&userid=25602
View this thread: http://www.excelforum.com/showthread...hreadid=390509

  #2   Report Post  
FSt1
 
Posts: n/a
Default

hi,
on the controls toolbar click design. Right click the button and select view
code for the pop up menu. here you should be able to assign your macro. you
may be able to paste the entire macro or if you have already writen the
macro you can use the call command ie
sub button_click()
call Yourmacro
end sub

Regards
FSt1

"johncouzins" wrote:


I am trying to assign a macro to a command button. The only way i know
how to do it is to insert a command button and then when i release the
mouse the "assign button" should come up. But its not doing it for some
reason.

And when i try to copy and paste the code into the button it brings me
up a load of errors.

Is there any other way i can assign a macro?


Cheers



John


--
johncouzins
------------------------------------------------------------------------
johncouzins's Profile: http://www.excelforum.com/member.php...o&userid=25602
View this thread: http://www.excelforum.com/showthread...hreadid=390509


  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

You have another response at your post in .excel.

johncouzins wrote:

I am trying to assign a macro to a command button. The only way i know
how to do it is to insert a command button and then when i release the
mouse the "assign button" should come up. But its not doing it for some
reason.

And when i try to copy and paste the code into the button it brings me
up a load of errors.

Is there any other way i can assign a macro?

Cheers

John

--
johncouzins
------------------------------------------------------------------------
johncouzins's Profile: http://www.excelforum.com/member.php...o&userid=25602
View this thread: http://www.excelforum.com/showthread...hreadid=390509


--

Dave Peterson
  #4   Report Post  
johncouzins
 
Posts: n/a
Default


nope that aint worked, and as i said when i just insert code it goes
wrong. I think that i must be sumthing to do with my network. have to
take it home and do it. Boooo

cheers anyway


--
johncouzins
------------------------------------------------------------------------
johncouzins's Profile: http://www.excelforum.com/member.php...o&userid=25602
View this thread: http://www.excelforum.com/showthread...hreadid=390509

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

What didn't work?

Using a button from the forms toolbar or you code when you clicked on that
button?

johncouzins wrote:

nope that aint worked, and as i said when i just insert code it goes
wrong. I think that i must be sumthing to do with my network. have to
take it home and do it. Boooo

cheers anyway

--
johncouzins
------------------------------------------------------------------------
johncouzins's Profile: http://www.excelforum.com/member.php...o&userid=25602
View this thread: http://www.excelforum.com/showthread...hreadid=390509


--

Dave Peterson
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
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


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