+ Reply to Thread
Results 1 to 11 of 11

excel16, Reset cells to empty but keeping dropdown values when button is clicked

  1. #1
    Registered User
    Join Date
    10-09-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    43

    excel16, Reset cells to empty but keeping dropdown values when button is clicked

    hi

    ive added a button in attached excel... When click on the commandButton1,cells b2, b3 and b5 should be empty. keeping the drop-down list values and colors border.
    any idea?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,767

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    Formula in C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In C3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In B5
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And for the button use
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-09-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    43

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    when click on the btn, the cell formatting color and cell borders are also being removed...
    how can i keep the cell color and borders. any formula to be added pls?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,767

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    Have you changed your code to the code I supplied?

  5. #5
    Registered User
    Join Date
    10-09-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    43

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    yes i did used same.
    But when click the color and borders are removed.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,767

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    Not if you've changed the code
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-09-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    43

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    yes its ok. thanks a lot

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,767

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    You're welcome & thanks for the feedback

  9. #9
    Registered User
    Join Date
    10-09-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    43

    excel16, Reset cells to empty but keeping dropdown values when button is clicked

    Quote Originally Posted by Fluff13 View Post
    You're welcome & thanks for the feedback
    hi for the dropdown ive used a list of data validation.
    how can i make it autocomplete dropdown ?

    Created 2 combo box and added some code to it.. but dont seems it working. can u pls chk & help.
    Attached Files Attached Files
    Last edited by Akika; 06-09-2019 at 03:30 AM. Reason: added excel

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,767

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    This is a totally different question & as such you need to start a new thread.

  11. #11
    Registered User
    Join Date
    10-09-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    43

    Re: excel16, Reset cells to empty but keeping dropdown values when button is clicked

    ok noted wl create a new thread thxs a lot.

+ 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. Replies: 1
    Last Post: 05-18-2019, 10:31 AM
  2. Cells reset formula from a Dropdown list
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2018, 10:17 AM
  3. RESET button for dependant dropdown list
    By Bradenbradenbraden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2018, 08:15 AM
  4. [SOLVED] Toggle Button to filter empty cells or cells with values
    By goomblar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2014, 10:31 AM
  5. Reset Values Based on Dropdown
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2014, 01:45 PM
  6. Keeping Values after the formula is reset
    By RMGraham in forum Excel General
    Replies: 1
    Last Post: 07-27-2012, 09:33 AM
  7. Reset Dropdown Lists based on Other inputs / cells
    By jonreynolds in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-12-2009, 12:20 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