+ Reply to Thread
Results 1 to 3 of 3

can i used list box except using in input box in this code for selection of one batch from

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

    can i used list box except using in input box in this code for selection of one batch from

    i have used InputBox for typing batchname for everytime i run code i should i have type a batch name


    example batchname is tblprod_agr_001....etc

    instead of that can i used listbox for selection of one batch from multiple batchnames or like dropdown list

    please help me out

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: can i used list box except using in input box in this code for selection of one batch

    Yes you can
    Please Login or Register  to view this content.

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

    Re: can i used list box except using in input box in this code for selection of one batch

    Thanks but it showing an error called Object required

    i have trying to give list of batches in the listbox in vba code like this if i run macro update it should display on i have chose one from multiple batches to update data

    rs.Open "select * from " & ListBox1.Text("tblprod_agr_001","tblprod_agr_002"), dbconn, adOpenStatic, adLockOptimistic
    Last edited by baig123; 08-08-2014 at 01:27 AM. Reason: paragraph

+ 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. Random List with input number from a selection list
    By alexaktung in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2012, 06:24 AM
  2. List Box Selection / Highligh Selection Code
    By Dr.SUN in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-28-2010, 11:48 PM
  3. Input form with criterion-based selection list
    By TPFKAS in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-27-2009, 05:05 PM
  4. Replies: 1
    Last Post: 07-20-2009, 12:17 AM
  5. auto input on list of selection dates
    By ocdg678 in forum Excel General
    Replies: 7
    Last Post: 09-15-2008, 11:52 AM

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