Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

hi guys
i am new to excel and i have made this macro in VB. using it i am
populating a dropdown list in the excel sheet.
now this list has some 1200 entries of names. i want a the user to be
able to reach a particular name by just entering the first letter of
the name.

how do i provide this funcionality in my page.
i can use VB macro but i would need a reference code atleast


thanx
regards
Shreya

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default HELP!!!! VB Macro in Excel

Hi Shreya,

in properties (in design mode right-click, properties) of the combobox
or listbox control, property "Match entry", choose value
"0-fmMatchEntryFirstLetter".

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

thanx dear
but i have this list box in excel so there are no properties as such.
that is some functionality i can give in VB. but i want it in Excel

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default HELP!!!! VB Macro in Excel

Hi Shreya,

yes, you can edit properties of list box embedded in Excel sheet.

In design mode (the mode where you can resize and move the control),
right click and follow my preceding post.

Regards,
Ivan

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default HELP!!!! VB Macro in Excel

Use the list box from the Control Toolbox, not from Forms.

NickHK

wrote in message
oups.com...
thanx dear
but i have this list box in excel so there are no properties as such.
that is some functionality i can give in VB. but i want it in Excel





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

i found my prob i have used a dropdown list so i am using a combo box
and not a list box. since i am using a dropdown list and the list is
being populated by another column of data in the same sheet.so i will
have to stick to that. now tel me how i can handle that.
either i should be able to populate my data column in the list box
(which incidentally i dont know how to :-)) and then use ur idea.
or find a solution with the use of a combo box

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default HELP!!!! VB Macro in Excel

Hi Shreya,

you should be able to edit properties of both listbox and combobox. Of
course use controls from Control Toolbox, not from Forms (as Nick
remarked).

Regards,
Ivan

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

i found my prob i have used a dropdown list so i am using a combo box
and not a list box. since i am using a dropdown list and the list is
being populated by another column of data in the same sheet.so i will
have to stick to that. now tel me how i can handle that.
either i should be able to populate my data column in the list box
(which incidentally i dont know how to :-)) and then use ur idea.
or find a solution with the use of a combo box

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default HELP!!!! VB Macro in Excel

Hi,

listbox and/or combobox you can populate with excel range also in
properties - it is "ListFillRange" property, where you insert something
like this: Sheet1!D2:D5.

Regards,
Ivan

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default HELP!!!! VB Macro in Excel

With either a list or combo box the approach is the same. These properties
will be useful to read about in Help:
..MatchEntry
..MatchRequired & .Style (Combo only)
..ListFillRange
..LinkedCell

NickHK

wrote in message
oups.com...
i found my prob i have used a dropdown list so i am using a combo box
and not a list box. since i am using a dropdown list and the list is
being populated by another column of data in the same sheet.so i will
have to stick to that. now tel me how i can handle that.
either i should be able to populate my data column in the list box
(which incidentally i dont know how to :-)) and then use ur idea.
or find a solution with the use of a combo box





  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

but how do i populate my data in the combo box (using control tollbox)
since it is not giving me the -control option in --format control as
i had in the combo box (using form). this way my whole list which i was
accessing from another column in the excel sheet is lost. funtionality
cannot be applied.

  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default HELP!!!! VB Macro in Excel

Right click the control and select "Properties".

NickHK

wrote in message
oups.com...
but how do i populate my data in the combo box (using control tollbox)
since it is not giving me the -control option in --format control as
i had in the combo box (using form). this way my whole list which i was
accessing from another column in the excel sheet is lost. funtionality
cannot be applied.



  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default HELP!!!! VB Macro in Excel

Don,
No, I can fit some 10000 entries.
Whether that is a good idea or not is another question...

NickHK

"Don Wiss" wrote in message
...
On 23 May 2006 00:09:36 -0700, wrote:

now this list has some 1200 entries of names. i want a the user to be
able to reach a particular name by just entering the first letter of
the name.


I've found combo boxes on user forms to be limited to about 100 entries.
Presumably the combo box from the control toolbar would have the same
limitations.

Don <www.donwiss.com (e-mail link at home page bottom).



  #15   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

thanx a lot guys u have solved my problem. Special thanx to nick and
ivan for helping an ametuer like me.
I am really grateful for ur help.



  #16   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default HELP!!!! VB Macro in Excel

On Tue, 23 May 2006 18:07:24 +0800, NickHK wrote:

Don Wiss wrote:
I've found combo boxes on user forms to be limited to about 100 entries.
Presumably the combo box from the control toolbar would have the same
limitations.


No, I can fit some 10000 entries.
Whether that is a good idea or not is another question...


Well, the time I tried a couple hundred it clearly failed. The solution was
to cut it up. Maybe it was because the list behind the combo box had some
10 columns.

Don <www.donwiss.com (e-mail link at home page bottom).
  #17   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

hi again
i have got a new problem this time. I have managed to populate the data
and all in the Combo box and its doing first letter select. but the
trouble is earlier in the list box (form type) when i used to select an
option i used to set the data in another cell.
it was giving the index of the data and i was doing some calculations
on the basis of this index value(it was a numeric value.)


but now when i select from the combo box its giving me the Data value
from the list which is of no use as far as my calculations are
concerned as its a data value and (not numeric). so what should i do to
get the index value instead of the exact text from the list in the
combo box.

I tried using bound column and set another column containing the index
of the list but its not working. even column count is of no use


plz help out.
thanx in advance

  #19   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default HELP!!!! VB Macro in Excel

thanx a lots for helping me out.

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
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
translate lotus 1-2-3 macro into excel macro using excel 2000 krutledge0209 Excel Programming 1 November 2nd 04 05:50 PM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM


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