+ Reply to Thread
Results 1 to 7 of 7

ComboBox.Text doesn`t work

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Cluj Napoca, Romania
    MS-Off Ver
    Excel 2003
    Posts
    14

    ComboBox.Text doesn`t work

    hello,

    i want to make a command form, but CommandBox.Text doesn`t work.

    i attached the .xls file and this is the code:

    Please Login or Register  to view this content.
    Thank you!
    Attached Files Attached Files
    Last edited by esential; 01-11-2010 at 04:46 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: ComboBox.Text doesn`t work

    You mean ComboBox.

    Your code is overwriting each entry because it is copying each combobox value to the same cell. Also, it is extremely inefficient,looping each time to find the next empty cell.

    Try this
    Please Login or Register  to view this content.
    Also,I don't know what size monitor you are using, but the form is way too big
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-06-2009
    Location
    Cluj Napoca, Romania
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: ComboBox.Text doesn`t work

    Thank you

    now i have another question ..

    if i want to insert another row when appear first empty cell, what i have to do?
    because maybe i`ll write some details on the end of the command form.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: ComboBox.Text doesn`t work

    The code that I posted will find the next empty row each time

  5. #5
    Registered User
    Join Date
    10-06-2009
    Location
    Cluj Napoca, Romania
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: ComboBox.Text doesn`t work

    i know, but how can i make if i want to put the information from combobox to an inserted row, that is between first empty cell and last writed cell?

    is a problem in code that you have written, because if i fill cell b2, next cell will be filled from combobox, but will edit cell b2 too with the information from combobox.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: ComboBox.Text doesn`t work

    Quote Originally Posted by esential View Post
    i know, but how can i make if i want to put the information from combobox to an inserted row, that is between first empty cell and last writed cell?

    is a problem in code that you have written, because if i fill cell b2, next cell will be filled from combobox, but will edit cell b2 too with the information from combobox.
    The code that I provided will only write to the next empty cell in B. I can't see why you need to insert a row

  7. #7
    Registered User
    Join Date
    10-06-2009
    Location
    Cluj Napoca, Romania
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: ComboBox.Text doesn`t work

    it`s a command form
    in top of page i have identification of company and in bottom of the page i have total price of command and some commercial stuffs.
    that`s the reason that i need to insert another row.

    the code you have written is working, but if i write in 2 ore more combobox will put the products from combobox in b3,c3,d3,e3 .. etc. and i need b3,b4,b5,b6 etc.

    sorry for my english and thank you for help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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