+ Reply to Thread
Results 1 to 2 of 2

EXCEL: Last Executed Line In VBA Code

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    EXCEL: Last Executed Line In VBA Code

    Dear All

    I' have code with thousands of line,

    now I' want to insert a code which should run after entire existing code completely executed.

    Now the problem is, I' can't do this with debug as it is time consuming

    please suggest.

  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: EXCEL: Last Executed Line In VBA Code

    Hi, gaikwad.mm@gmail.com,

    develop the new segnment on itīs own in a sub and after hgaving tested it place a call to the new macro at the end of your other macro.

    Maybe it would be a good idea to work at bit on the macro code to avoid Select and Activate as I think there will be plenty of them in your code.

    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)

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