+ Reply to Thread
Results 1 to 3 of 3

How to revised macro code to repeat the recorded task without recording several times?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    How to revised macro code to repeat the recorded task without recording several times?

    All Excel VBA experts,

    I have macro recorded task and explaination as well here: macro.xlsm

    I want to revised the code to repeat the task by 100 times without recording the whole 100 times task or copy and pasting the code. As easy code as possible.

    Is it possible?

  2. #2
    Registered User
    Join Date
    08-11-2013
    Location
    leeds
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: How to revised macro code to repeat the recorded task without recording several times?

    for i = 1 to 100
    
    Range("J1").Select
    ActiveCell.FormulaR1C1 = i
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
    IgnorePrintAreas:=False
    
    next i

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to revised macro code to repeat the recorded task without recording several times?

    Hi,

    Thanks you so much. It works perfectly.

+ 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] Help needed with recorded macro - want to repeat it down a column ~3000 rows
    By Mr_Natural in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2013, 07:48 AM
  2. Macro to repeat task for every row (undetermined)
    By shadolphus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2013, 07:07 PM
  3. [SOLVED] Macro to move to next worksheet and repeat task
    By wakisme in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2012, 07:37 PM
  4. macro recorded for the first row, how to repeat it on the next 300 rows
    By sdic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2012, 05:15 AM
  5. Recording Macro to generate scatter plot: Plot from Macro different from recorded.
    By VaPiano in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2012, 05:41 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