+ Reply to Thread
Results 1 to 2 of 2

Need a code to only run a command every 10 loops

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    Findlay, OH
    MS-Off Ver
    Excel 2007
    Posts
    33

    Need a code to only run a command every 10 loops

    I keep getting Run Time Error 1004 and I think if I can figure out a code to do the following it will stop. I want the workbook to save, close and reopen and restart the macro (control z) when the workbook reopens.

    I can figure out the code.Our Bed Board.xlsm

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Need a code to only run a command every 10 loops

    Hi, thuddleston11,

    please do not start multiple threads on the same topic (http://www.excelforum.com/excel-prog...-10-loops.html) - thanks.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for 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. only perform this command every 10 loops
    By thuddleston11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2013, 01:10 PM
  2. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  3. Combine two vba code loops into one
    By rlsublime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2011, 02:27 PM
  4. VBA Code for loops
    By rjett in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2010, 10:24 AM
  5. [SOLVED] help with loops in code,
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2006, 09:30 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