+ Reply to Thread
Results 1 to 4 of 4

Looping Recorded Macro

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    15

    Looping Recorded Macro

    Good Day,
    I have a recorded macro that I would like to get an input from the user of how many times to run the macro.

    Please Login or Register  to view this content.
    I get a run-time error '1004' - Insert method of Range class failed at the code in red.

    Any ideas?
    Last edited by mattyh555; 11-28-2012 at 10:14 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,593

    Re: Looping Recorded Macro

    Works fine for me ... but I don't have a workbook or data to test it with.

    Is the worksheet protected?


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Looping Recorded Macro

    Yes it was protected. I will work in the code to unprotect it on running of the macro and to protect it again after it is complete.

    Thanks so much.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,593

    Re: Looping Recorded Macro

    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)

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