+ Reply to Thread
Results 1 to 5 of 5

Need a macros that can loop through these sheets

  1. #1
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Need a macros that can loop through these sheets

    Hey guys,

    i have a macro that i would like to have loop through WED, THUR, FRI,SAT, SUN, MON, TUES on the attached sheet. Can someone help me with this? What its doing is deleting the yellow highlighted cells.


    Please Login or Register  to view this content.
    Last edited by g1terra; 10-29-2017 at 11:30 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Need a macros that can loop through these sheets

    hi there. you can try adding these code on top and below your running code:

    Please Login or Register  to view this content.
    you can also reduce some parts of your code. scrolling can all be deleted:
    Please Login or Register  to view this content.
    you can also combine some codes. when recording, you had to select the range before clearing.
    Please Login or Register  to view this content.
    it can also be done as:
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need a macros that can loop through these sheets

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Need a macros that can loop through these sheets

    Ok that did not work it only clear the 1st sheet. I cleaned up my code and placed the in where you listed PLACE CODE HERE>

    Here is My original..
    Please Login or Register  to view this content.
    Here is inserted in yours.. Not sure if I am doing something wrong?

  5. #5
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Need a macros that can loop through these sheets

    OK that worked Alpha thank you!!!

+ 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. VBA Loop Refuses to Loop Through Sheets
    By andrewturngren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2017, 03:26 PM
  2. [SOLVED] Loop worksheets and if sheets Name matches pattern, rename sheets
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2016, 01:08 AM
  3. Loop through multiple files and call macros (but unable to loop)
    By ryanpetersen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2014, 12:04 PM
  4. [SOLVED] Loop codes through multiple sheets (not all sheets in workbook)
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2014, 02:11 AM
  5. [SOLVED] loop action through all sheets in workbook skipping certain sheets
    By sawa85sa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2013, 06:40 PM
  6. Call Macros before Next loop (loop creates new worksheets)
    By mantooth29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2012, 05:47 PM
  7. hiding sheets but still letting macros run when printing hidden sheets
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 11-13-2008, 04:35 AM

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