• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

macro code for delete range of cells in several Pages

Status
Not open for further replies.

hoomantt

Member
Hi Dear Professors
i need a help
in my example attached file(TEST), i need a macro that when i click on recycle bin image in "MENU" Page:
then clear just data in cells in some of ranges in several pages like this:
page USA , Range A3:C5
Page Italy , Range A2:B4
Page china , Range A5:C9
Please, Please help me
 

Attachments

  • TEST.xlsx
    48.5 KB · Views: 4
hoomantt
You can continue with this sample...
Code:
Sub Hoomantt()
    Sheets("USA").Range("A3:C5").Clear
    Sheets("Italy").Range("A2:B4").Clear
'   and so on ...
End Sub
 
Are VBA questions not supposed to be posted in the relevant subforum?
by Moderator: Yes, as well as all questions and answers.
 
This thread has duplicate to
This older thread is closed now.
 
Status
Not open for further replies.
Back
Top