+ Reply to Thread
Results 1 to 12 of 12

how can i code for an Combo box please help me out

  1. #1
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    how can i code for an Combo box please help me out

    i have taken an Combo Box for listing my batch names like tblprod_Agr_001,tblprod_agr_002..etc

    i column A i have listed tblprod_Agr_001,tblprod_agr_002



    Please Login or Register  to view this content.
    here instead of using input box i wanted to used a combo box whenever if run macro update it should display me Combo box displaying an drop down list

    it is possible to do it because i am new fo this field i dont that much Please help me out

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how can i code for an Combo box please help me out

    There is no 'popup' combobox like the Inputbox, however, we can program a userform to accomplish your request.

    But I'm more interested in the process you're describing. Do you want to batch process the update, down Column A? Do you just want to update once? If the latter, then using ActiveCell.Value instead of Inputbox may be your solution.

    We also may be able to accomplish this with a validation list.

    Either way, userform, or validation list, we'll need a sample workbook WITH DATA that represents you're request.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i code for an Combo box please help me out

    see i have attached Sheet

    whenever i run update module i need to enter the batch name tblprod_agr_001
    because i have i have multiple batch names tblprod_agr_001,tblprod_agr_002,tblprod_agr_003

    thats why i wanted to used combo box for selecting from multiple batches

    whenever i run the update module should display a combo box for selecting particular batch name to be get updated

    it is possible to do

    Please help me out
    Attached Files Attached Files
    Last edited by baig123; 08-14-2014 at 02:34 AM. Reason: paragraph

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how can i code for an Combo box please help me out

    Ok, so , you're sheet is empty. Do you have a list of batch names somewhere on a sheet?

    Or is the batch names fixed at tblprod_agr_xxx and you need to pick a number of batch numbers?

  5. #5
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i code for an Combo box please help me out

    yes i need to pick numbers

    like tblprod_agr_001
    tblprod_agr_002.............etc

  6. #6
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how can i code for an Combo box please help me out

    This perhaps...
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i code for an Combo box please help me out

    I tryused this but getting an error called run-time error'3021'

    either bof or eof is true, or the current record has been deleted.
    Requested operation requires a current record

    Please Login or Register  to view this content.

  8. #8
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how can i code for an Combo box please help me out

    Does the batch file have an extension?

  9. #9
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i code for an Combo box please help me out

    no

    batch name like this

    tblprod_agr_001
    tblprod_agr_002..etc

  10. #10
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how can i code for an Combo box please help me out

    Does the batch name display correctly in the Immediate window?

  11. #11
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i code for an Combo box please help me out

    no it is not

  12. #12
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how can i code for an Combo box please help me out

    Then, you'll have to change it so that it does, then duplicate that code to the dBASE command line. I'll be away from computer today and tomorrow.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code works with Combo Box-Form Control, but not with Combo box - ActiveX Control
    By nangys in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2014, 08:51 AM
  2. [SOLVED] Excel 2010 VBA – Combo Box Options– Clear cell/box in 2nd Combo when 1st Combo selected
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 07:25 PM
  3. combo box user form code for two combo boxes
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-01-2012, 02:25 PM
  4. Combo Box Code
    By penfold in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-16-2008, 03:50 PM
  5. [SOLVED] Combo Box Code
    By jd815 in forum Excel General
    Replies: 1
    Last Post: 09-14-2005, 04:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1