Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
gvm gvm is offline
external usenet poster
 
Posts: 38
Default where on earth is the macro?

I have a strange problem. A spreadsheet includes a combo box and a macro has
been associated with the combo box and so I know the name of the macro. But I
can't find the macro nor dissociate the macro from the box. In looking for
the macro, I have clicked on "View Source" from the tab name, switched to VBE
and checked the visible objects, but no joy. Can someone tell me where to
look for this mysterious macro please? thanks.... Greg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default where on earth is the macro?

Perhaps it is a combo from the forms toolbar.

Select the combo, right click and select Assign macro if there is one. The
macro would then be in a standard code module.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"gvm" wrote in message
...
I have a strange problem. A spreadsheet includes a combo box and a macro

has
been associated with the combo box and so I know the name of the macro.

But I
can't find the macro nor dissociate the macro from the box. In looking for
the macro, I have clicked on "View Source" from the tab name, switched to

VBE
and checked the visible objects, but no joy. Can someone tell me where to
look for this mysterious macro please? thanks.... Greg



  #3   Report Post  
Posted to microsoft.public.excel.programming
gvm gvm is offline
external usenet poster
 
Posts: 38
Default where on earth is the macro?

Thanks Bob for the reply,
yes it is a combo box from the forms toolbar

the problem I am having is that the value in the cell link becomes something
different from the value I select from the dropdown list. When I looked at
the combo box properties, it appeared to have a macro associated to it and
hence I assumed the macro was causing the value in the link cell to be
changed. I now think the assumption was wrong.

Why might the real cause of my problem be please?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default where on earth is the macro?

Are you getting a number in the link cell not the value? If so, that is the
index of the item selected not the item itself.

You need to look it up. Suppose your list range is A1:A100, the link cell is
b1, then in C1 add

=MATCH(B1,$A$1:$A$100,0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"gvm" wrote in message
...
Thanks Bob for the reply,
yes it is a combo box from the forms toolbar

the problem I am having is that the value in the cell link becomes

something
different from the value I select from the dropdown list. When I looked at
the combo box properties, it appeared to have a macro associated to it and
hence I assumed the macro was causing the value in the link cell to be
changed. I now think the assumption was wrong.

Why might the real cause of my problem be please?



  #5   Report Post  
Posted to microsoft.public.excel.programming
gvm gvm is offline
external usenet poster
 
Posts: 38
Default where on earth is the macro?

Bob, you have described my problem and your suggested solution does work,
thank you. What causes the index value instead of the lookup value to be
inserted to the link cell? The dropdown list is not intended to work that way
is it? Thanks again..... Greg


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default where on earth is the macro?

It is designed to work that way. Oddly, the combo from the controls toolbar
works differently, the linked cell shows the selected value.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"gvm" wrote in message
...
Bob, you have described my problem and your suggested solution does work,
thank you. What causes the index value instead of the lookup value to be
inserted to the link cell? The dropdown list is not intended to work that

way
is it? Thanks again..... Greg



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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
where on earth can I find data entry forms in Excel 2007 retep Excel Discussion (Misc queries) 4 February 10th 07 02:14 PM
How on Earth do I use the GHK Function? Charles Matheson Excel Worksheet Functions 3 October 31st 06 07:47 AM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


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