+ Reply to Thread
Results 1 to 4 of 4

Select Box - why not allways first element?

  1. #1
    Registered User
    Join Date
    10-27-2021
    Location
    Vienna
    MS-Off Ver
    2019
    Posts
    29

    Select Box - why not allways first element?

    Hello - find attached an example worksheet i am working on -
    As you can see i have a table with a data validation in the columns A and H to the second worksheet "param".

    When i insert a new line with eg. Strg and + in row 10
    you see when you open the cell A10 that automatically the first entry (<SELECT>) is selected.
    But when i open the cell H10 tha last entry (blank) is selected

    Why is there a difference between this 2 cells?
    (generally i would like to have allways the first entry of the dropbox selected when nothing is in and the user open the drop box)
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,946

    Re: Select Box - why not allways first element?

    There is a way round it, but you can't apply it after the event.

    In I2 type:

    =IF([@Trade]="","<SELECT>","")

    Then set the data validation for that cell and then copy using paste special to the other cells in the column. Just cancel any error message you get about the validation at this stage.

    When you insert rows going forward, <SELECT> will appear until a value is chosen.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-27-2021
    Location
    Vienna
    MS-Off Ver
    2019
    Posts
    29

    Re: Select Box - why not allways first element?

    Hello - thanks for the reply - but this is only working when the FilterList is build form row 2 to 6
    i changed this to row 60 and now again its not working eg. for I2
    see attached
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,946

    Re: Select Box - why not allways first element?

    Try this in I2:

    ="<SELECT>"

    If will only be there until you apply something from the list

+ 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. How to select webpage HTML Input element list item
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-09-2017, 02:43 PM
  2. [SOLVED] Allways only show the last data label
    By MetteGaga in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 08-18-2015, 07:47 AM
  3. 21 values (percentage) allways sum up to 100%
    By Ansvarig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2015, 10:39 AM
  4. use allways the cell from line before
    By frankthetanki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2014, 01:36 PM
  5. The sum in my code allways gives the same result
    By blaadjeG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2011, 03:54 PM
  6. Select single element of RecordSet
    By DP978 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-26-2010, 10:33 AM
  7. How can I allways paste PLAIN TEXT ?
    By Davus_ik in forum Excel General
    Replies: 2
    Last Post: 01-09-2005, 12:06 PM

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