+ Reply to Thread
Results 1 to 4 of 4

Proper syntax to make macro repeat

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Proper syntax to make macro repeat

    Hello everyone

    I'd like your help with making this macro repeat.

    About the Macro:


    There are 2 worksheets in the same workbook.

    Sheet 1 is titled "Letter"
    Sheet 2 is titled "Nov '14 to Nov '15 Customers"

    What this macro does is:
    1. "Quick Print" sheet 1
    2. Change cell A2 on Sheet 2, from "No" to "Yes" (Column A is titled "Printed")
    3. Sort Sheet 2 starting with row 2, first by column A ("Printed"), then by column Column C ("Name") smallest to largest, so that the "Yes" cells are at the bottom and the list remains in alphabetical order, meaning everything prints in alphabetical order.

    I would like this macro to repeat until all rows show they've been printed (currently a little more than 2,600 rows).

    Macro Code


    Here's the Macro I created using the Excel interface (Record Macro, do the steps, stop recording). It works - but I don't know how to make it repeat. Thank you in advance for your time and assistance!

    Please Login or Register  to view this content.
    Last edited by OpieWinston; 11-25-2015 at 10:22 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Make This Macro Repeat Please

    Maybe ...

    Please Login or Register  to view this content.
    Last edited by shg; 11-24-2015 at 07:26 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Re: Proper syntax to make macro repeat

    Appears to work based on the 6 line test I ran. Thank you very much shg!!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Proper syntax to make macro repeat

    You're welcome.

+ 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] Proper syntax to run macro
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2014, 07:31 PM
  2. Macro to make a button open/paste CSV file & format it and add proper % amt
    By Alice-project in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2013, 05:22 PM
  3. [SOLVED] proper syntax
    By lundy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2012, 01:44 PM
  4. Proper syntax for IF statement within macro
    By rap73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2012, 11:25 PM
  5. Proper syntax for this
    By Barb Reinhardt in forum Excel General
    Replies: 1
    Last Post: 08-04-2006, 09:20 AM
  6. Proper SQL Syntax - DAO
    By MSweetG222 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2006, 05:35 PM
  7. Is this proper syntax?
    By Shelby Haynes in forum Excel General
    Replies: 3
    Last Post: 05-10-2005, 05:06 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