Closed Thread
Results 1 to 10 of 10

clear range data

  1. #1
    Forum Contributor
    Join Date
    07-27-2017
    Location
    Dhaka
    MS-Off Ver
    MS Excel 2019/ 64 bit
    Posts
    159

    clear range data

    Dear Expert,
    I want to clear my worksheet data for a specific range in my worksheet.
    that's why i need a code to clear data with a input box to set my clear range.

    like, when i run the macro code that time input box ask me the range where i want to clear data.

    Please help me in this regard.



    Best Regards
    Wahid

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: clear range data

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: clear range data

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: clear range data

    With error handling

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-27-2017
    Location
    Dhaka
    MS-Off Ver
    MS Excel 2019/ 64 bit
    Posts
    159

    Re: clear range data

    Dear Expert,
    Many many thanks, its working properly.

    would you pls help me to add a same type input box to fill blank with below code:

    Please Login or Register  to view this content.
    Last edited by rachelwahid; 03-28-2020 at 01:52 PM.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: clear range data

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  7. #7
    Forum Contributor
    Join Date
    07-27-2017
    Location
    Dhaka
    MS-Off Ver
    MS Excel 2019/ 64 bit
    Posts
    159

    Re: clear range data

    Dear Expert,
    Please attend now on corrected code above.

  8. #8
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: clear range data

    Give it a try with the previous suggestions

  9. #9
    Forum Contributor
    Join Date
    07-27-2017
    Location
    Dhaka
    MS-Off Ver
    MS Excel 2019/ 64 bit
    Posts
    159

    Re: clear range data

    actually i am not practician with vba but i like to work with vba.
    Please help me with code.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: clear range data

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...ode-range.html

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Auto clear range but not the data validation in it
    By anilpatni1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2019, 09:41 AM
  2. Clear Cell range upon Changing data in difference Range
    By snuffnchess in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2016, 02:22 AM
  3. [SOLVED] Clear Column Data with range
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2014, 05:09 PM
  4. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  5. Clear data from range of cells then autosort
    By Jeepster325 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 01:13 PM
  6. [SOLVED] Using named range to clear cell data
    By Nuffers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2012, 07:23 PM
  7. [SOLVED] Clear data range, and copy static value.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2005, 03:50 AM

Tags for this Thread

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