+ Reply to Thread
Results 1 to 4 of 4

Error when running a macro

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    NEW JERSEY
    MS-Off Ver
    2019
    Posts
    74

    Error when running a macro

    I have a macro called YEARTOT.
    I am trying to copy the rows that contain YEAREND in the "C" column from the DAILY sheet to the YEARTOT page.
    When I run it, I get a Run-time error '9':
    Subscript out of range.
    I am enclosing a copy of the spreadsheet and a text fie that contains the YEARTOT macro.
    I could not include the macro in the spreadsheet, it gave me an error.
    I have a lot of other macros that run with no problem.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Error when running a macro

    You need at least two changes in your code to accomplish what you say you want to do.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-08-2019
    Location
    NEW JERSEY
    MS-Off Ver
    2019
    Posts
    74

    Re: Error when running a macro

    Works great - Thanks for the quick response.

  4. #4
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Error when running a macro

    Thanks for the positive feedback, glad having been of some help.

+ 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. error when running MS Word macro commands in Excel macro
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2014, 01:30 PM
  2. Finding Blank cells
    By Sam9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 06:13 AM
  3. Error in running macro
    By ashahdeo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2012, 08:55 AM
  4. Error after running macro
    By ciprian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2011, 10:55 PM
  5. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM
  6. Error 400 on running Macro
    By James T in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2006, 11:45 AM
  7. Error Running a Macro
    By viddom in forum Excel General
    Replies: 3
    Last Post: 07-28-2005, 09:05 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