• Error when run macro (2000)

    Author
    Topic
    #430201

    On trying to run a macro l get an error, see atatchment.

    Viewing 0 reply threads
    Author
    Replies
    • #1003892

      What code are you executing, and what is highlighted when you click Debug?

      • #1003893

        Nothing is highlighted ,Do you want to see the code?
        This is the coding:

        Very long code fragment (over 7,000 characters!) moved to attachment by HansV

        • #1003894

          The code you posted contains three macros. Which of the three were you trying to run when you got the error?

          • #1003897

            DAPU lines.

            • #1003899

              The macro tries to delete lines (graphic objects) named Line 5, Line 4, Line 3, Line 2 and Line 1 from the active worksheet. If there are no lines with those names, you’ll get an error message.

            • #1003901

              Thanks for that. I will bear that in mind next time l do a macro.

        • #1003896

          > Nothing is highlighted

          I wrote that you should click the Debug button in the error message. If you do, a line of code will be highlighted.

    Viewing 0 reply threads
    Reply To: Error when run macro (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: