Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default how to use a command button in excel?

What button type[listbox or command?] and what script do I attach to a
button I've called 'Select a Workgroup' which, when clicked on, will provide
a drop down box with all workgroup names. I would like to be able to click
on a name and have the data within the report reflect that of the workgroup
selected. I'm trying to recreate a macro button in Excel as used in Lotus -
example below :

Sub Click(Source As Buttoncontrol)
[/w].MacroRun
End Sub

*where /w represents "workgroup"

Does Excel have the same premise as Lotus whereby a "workgrouplist" and
"workgrouppick" need to be named in a range as well as the following
formula{CHOOSE-ITEM workgrouplist;workgrouppick;"Select a
Workgroup";"Workgroup Selection"}{calc}. Is there a web site that I can
refer to for assistance?
Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default how to use a command button in excel?

Gail
I'm not sure I follow everything you said. I get the idea that you want
to have a list presented (displayed) to the user for the purpose of having
the user select (click on) one item from the list. Then you want Excel to
automatically transfer/copy/bring some data, that is pertinent to the
selection, from a source location to some other destination location. Is
that right?
Assuming the above is correct, you can do this with Data Validation and
a number of VLookup formulas. Maybe. The "Maybe" is dependent on what your
data layout is. If VLookup formulas won't do it, VBA will.
You would use Data Validation (look it up in Help) in one cell. When
the user selects that cell and clicks on the down-arrow to the right of that
cell, a drop-down list of all the workgroup names would be displayed. When
the user clicks on one of the names, that name would be displayed in that
cell. Everything else would then be done automatically.
I assume that you have the data you want copied located in a table
structure with the workgroup names in the first column of this table. If
this is so, you can place VLookup formulas in each of the destination cells.
That way, each such formula cell will display the specific data from the
table that is pertinent to the selection made.
Please post back if this sounds like it might work for you. Provide
more details about what you have and what you want to happen. HTH Otto
"GailK" wrote in message
...
What button type[listbox or command?] and what script do I attach to a
button I've called 'Select a Workgroup' which, when clicked on, will
provide
a drop down box with all workgroup names. I would like to be able to
click
on a name and have the data within the report reflect that of the
workgroup
selected. I'm trying to recreate a macro button in Excel as used in
Lotus -
example below :

Sub Click(Source As Buttoncontrol)
[/w].MacroRun
End Sub

*where /w represents "workgroup"

Does Excel have the same premise as Lotus whereby a "workgrouplist" and
"workgrouppick" need to be named in a range as well as the following
formula{CHOOSE-ITEM workgrouplist;workgrouppick;"Select a
Workgroup";"Workgroup Selection"}{calc}. Is there a web site that I can
refer to for assistance?
Thank you!



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 Button Excel 2007 dhstein Excel Discussion (Misc queries) 4 February 15th 09 04:14 PM
Command Button in Excel Frederic Excel Programming 14 November 16th 05 12:50 AM
Excel Add-In with Command Button Controls Mark Dev Excel Programming 3 May 21st 05 02:14 PM
Can I run a macro from a command button in Excel? jacchops Excel Programming 3 February 16th 05 06:18 PM
excel, vba, command button jimx[_2_] Excel Programming 2 June 1st 04 05:38 PM


All times are GMT +1. The time now is 01:45 PM.

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

About Us

"It's about Microsoft Excel"