+ Reply to Thread
Results 1 to 4 of 4

Independent SheetX.cells.clear command per sheet

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    Manila
    MS-Off Ver
    Excel 2003
    Posts
    25

    Independent SheetX.cells.clear command per sheet

    Hi, I have a file with 3 Sheets and I created a command button in Sheet1 that will clear all cells in that sheet only using Sheet1.Cells.Clear. How do I replicate that in Sheet 2 and 3 while maintaining the same size of the button for uniformity purposes? Basically, make an independent clear cells command per sheet with the same height and width?

    I tried copy pasting the button to sheet2 but I can't find it in VBA where I can just edit it and replace Sheet1.Cells.Clear with Sheet2.Cells.Clear but still being independent from one another.

    Help!

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Independent SheetX.cells.clear command per sheet

    Is it ActiveX button or Forms button?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    03-22-2014
    Location
    Manila
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Independent SheetX.cells.clear command per sheet

    Hi Izandol, I figured it out. Turns out im using Forms instead of an ActiveX command button. Anyway, if Im making around 50 sheets, does it mean I have to individually edit SheetX.Cells.Clear for all those 50 sheets?

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Independent SheetX.cells.clear command per sheet

    If you do use Forms buttons you may assign same macro to each one:
    Please Login or Register  to view this content.

+ 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. [SOLVED] Multiple Sheet Clear Cells
    By rob1st in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2013, 01:14 AM
  2. [SOLVED] can someone help modify the clear command to only clear columns from A-G?
    By psunursingguy21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2013, 03:52 PM
  3. Look Through Sheet & Clear Cells which do not have formula
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2009, 12:14 AM
  4. [SOLVED] Difference among Module, SheetX, ThisWorkbook?
    By muster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2006, 02:00 PM
  5. [SOLVED] Copy sheet and clear cells on new sheet at sametime.
    By Brad Withrow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2006, 08:25 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