+ Reply to Thread
Results 1 to 13 of 13

Clear contents from listbox source sheet

  1. #1
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Clear contents from listbox source sheet

    Hello

    I have a listbox with the source being A8:H20 on sheet 8, I would like when i select a record in the list box and press my delete button, it removes the record from the source on sheet 8. I would prefer clearing the contents, instead of deleting the row, each example i tested so far with deleting the row, it messes up the source address (A8:H20). Any Help would be greatly appreciated.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Clear contents from listbox source sheet

    How are you populating the listbox?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    I populate the listbox by entering the data via textboxes, then a command click will transfer them to sheet 8, range: A8:H20

  4. #4
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Any help here please

  5. #5
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Any help here please

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Clear contents from listbox source sheet

    I'm sorry but I don't quite understand what you are doing, or what you want to do.

    At first you appear to be saying that you are populating the listbox from a range.

    However you then seem to say you are populating it from textboxes and then transferring the contents of the listbox to a specific range.

    Which is it?

    What do you want to clear, the range or the listbox?

  7. #7
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Sorry if i seem to be confusing you. I want to clear the selected item from the listbox and also the associated record in the range.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Clear contents from listbox source sheet

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  9. #9
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Norie i have uploaded the workbook, the entire book is too large, so i basically uploaded a revised version that just captures what i want to accomplish.

    when you enter data in the textbox, when you click the button it should add what you entered to the source (page 2), and reflect in the listbox. I now want to be able to delete the item from the listbox and the source (page 2) by simply clicking on the item in the listbox and pressing the delete button. Kindly help if possible.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Any help here please

  11. #11
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Any help here please?

    If there is no time to look at the example, can someone at least suggest a method i can try?

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Clear contents from listbox source sheet

    Try this.
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Clear contents from listbox source sheet

    Quote Originally Posted by Norie View Post
    Try this.
    Please Login or Register  to view this content.
    Thank you Norie

+ 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. clear listbox to view other file sheet
    By simeonmein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2013, 06:46 AM
  2. [SOLVED] Clear contents in another sheet
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-12-2012, 05:20 PM
  3. Excel 2007 : Clear contents on all protected sheet
    By SEHRA in forum Excel General
    Replies: 0
    Last Post: 06-22-2011, 08:36 AM
  4. Clear sheet contents before continuing with macro
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2009, 07:06 AM
  5. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 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