+ Reply to Thread
Results 1 to 11 of 11

Userform: delete all content through double click but not the highlighted line

  1. #1
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Userform: delete all content through double click but not the highlighted line

    Hi,
    I have a worksheet in whichs Column A Cells , there is corresponding string content in Col. Z. Some cells of column Z contain of many lines (up to 100 line) which i want to reduce to one. I want to select one line through double clicking in the listbox of the userform and all other lines should be deleted and only the clicked one should remain. Code should then jump to the next non empty Z cell.

    Columns B, C, D, E, F, G and H should also be shown in the userform and they should be live editable. I have attached and example file with userform and example data.

    I will be very thankful for each help.
    Attached Files Attached Files

  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: Userform: delete all content through double click but not the highlighted line

    There's no code for your userform in the example.

    The userform is too big to display properly
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Userform: delete all content through double click but not the highlighted line

    Unfortunately there is no code yet. I have only the userform!
    I have changed now the size of the userform. Its smaller now!
    thanks
    Attached Files Attached Files

  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: Userform: delete all content through double click but not the highlighted line

    You can't expect a full project from a help Forum, at least make some attempt yourself

  5. #5
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Userform: delete all content through double click but not the highlighted line

    I can't write the code myself. I have no idea of VBA. Therefore i had posted this problem in the "Commercial Services Exchange" of this forum because I didnt expect the solution here. I had posted it on 26th of December and there is yet not a single answer.

    So i simplified it and posted here in the non commercial area with the hope some one can help.

  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: Userform: delete all content through double click but not the highlighted line

    I saw that post but couldn't follow what you wanted,this is somewhat clearer

  7. #7
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Userform: delete all content through double click but not the highlighted line

    I can try to explain if somethig is not clear.

    thnaks

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

    Re: Userform: delete all content through double click but not the highlighted line

    I'll take a look for you

  9. #9
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Userform: delete all content through double click but not the highlighted line

    Thank you very much for taking the time to understand my problem.

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

    Re: Userform: delete all content through double click but not the highlighted line

    I've had a look but I haven't got a simple solution yet.

    I don't think that your current form will be suitable, but the main issue is the fact that the Z cell needs populating to the ListBox. I'm about halfway there

  11. #11
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Userform: delete all content through double click but not the highlighted line

    The userform i have posted is not a must. It must not look like i have made it. Important is that i can selectively decrease the lines in Z column.

    Thanks

+ 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