+ Reply to Thread
Results 1 to 5 of 5

Error in running Macro Every Minute

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Error in running Macro Every Minute

    I am running a Macro every minute, where I copy the range Cells C13:D13 on Main sheet, and paste it into next available row in Log sheet column A.

    The Macro does run but it does copy and paste the values twice. I cant seem to understand why.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Error in running Macro Every Minute

    You started another "With" blcok without closing the first one.
    I have adjusted in your file.
    Attached Files Attached Files

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error in running Macro Every Minute

    your code runs ok here-are you sure you hadn't set it running twice?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: Error in running Macro Every Minute

    Ahh yes! Because it runs as soon as the workbook opens. But can also start manually. Thanks guys!

  5. #5
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: Error in running Macro Every Minute

    Thank you very much for your help!

+ 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