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

I have a spreadsheet created by someone else.
It has command buttons that are used for adding
values to a list in the sheet.
How can I get to the actual code the button runs?
I've been digging and digging and can't figure out
where the code for the button is.
Any ideas would be greatly appreciated.

I'm using Excel 2007.


TIA

Robert

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Command Buttons

Not sure if this will work for 2007.

For a Forms-type button, right-click the button and select Assign Macro. If
a macro has already been assigned, then touch Edit


For a Controls-type button, right-click the button and pick View Code
--
Gary''s Student - gsnu2007c


"Robert Martin" wrote:

I have a spreadsheet created by someone else.
It has command buttons that are used for adding
values to a list in the sheet.
How can I get to the actual code the button runs?
I've been digging and digging and can't figure out
where the code for the button is.
Any ideas would be greatly appreciated.

I'm using Excel 2007.


TIA

Robert


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Command Buttons

I can pick view code. And here is what I see

Private Sub CommandButton3_Click()
blnAddJob = True

frmAdd.Caption = "Add Job"
frmAdd.Show

End Sub

I also see

=EMBED("Forms.CommandButton.1","")

when I pick it in developer mode.

I've never worked with something like this before

TIA

Robert


"Gary''s Student" wrote in message
...
Not sure if this will work for 2007.

For a Forms-type button, right-click the button and select Assign Macro.
If
a macro has already been assigned, then touch Edit


For a Controls-type button, right-click the button and pick View Code
--
Gary''s Student - gsnu2007c


"Robert Martin" wrote:

I have a spreadsheet created by someone else.
It has command buttons that are used for adding
values to a list in the sheet.
How can I get to the actual code the button runs?
I've been digging and digging and can't figure out
where the code for the button is.
Any ideas would be greatly appreciated.

I'm using Excel 2007.


TIA

Robert


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Command Buttons

If I put excel in Design mode I can see this code

Private Sub CommandButton3_Click()
blnAddJob = True

frmAdd.Caption = "Add Job"
frmAdd.Show

End Sub

What this does is add a item to a list then sort

I also see =EMBED("Forms.CommandButton.1","")

Ant Ideas on where I should look?

TIA

Robert


"Gary''s Student" wrote in message
...
Not sure if this will work for 2007.

For a Forms-type button, right-click the button and select Assign Macro.
If
a macro has already been assigned, then touch Edit


For a Controls-type button, right-click the button and pick View Code
--
Gary''s Student - gsnu2007c


"Robert Martin" wrote:

I have a spreadsheet created by someone else.
It has command buttons that are used for adding
values to a list in the sheet.
How can I get to the actual code the button runs?
I've been digging and digging and can't figure out
where the code for the button is.
Any ideas would be greatly appreciated.

I'm using Excel 2007.


TIA

Robert


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
Command buttons aussiegirlone Excel Discussion (Misc queries) 2 January 8th 09 09:09 AM
Command Buttons wildauk Excel Programming 2 October 25th 06 07:33 PM
command buttons wildauk Excel Programming 3 September 12th 06 04:52 AM
Command Buttons msals22[_3_] Excel Programming 2 June 21st 06 09:43 PM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM


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