+ Reply to Thread
Results 1 to 6 of 6

Pause Macro, move to another cell, continue macro execution

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Pause Macro, move to another cell, continue macro execution

    This issue I am sure is probably discussed somewhere but I am a first time user. What I have is an inventory list. Column A is the vendor, and Column B is the part number. Both have been sorted A to Z. When the macro runs it processes the part number that is selected, returns to column B, goes down one cell to the next number to be acted upon. The problem is that number may be down 3 cells in column B so I need to move the cell pointer there, and then continue macro execution by enter. Is there any way to do this.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,873

    Re: Pause Macro, move to another cell, continue macro execution

    so you probably have something like:
    Please Login or Register  to view this content.
    in your code now
    try:
    Please Login or Register  to view this content.
    By the way - using seletion instead of coordinates (row and col) if often "good way to slow down macro execution - so try to avoid it.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Pause Macro, move to another cell, continue macro execution

    Let me give you a better explanation. If I was using the old Lotus 123 macro language, I would insert this {?}. This pauses macro execution and you can use any other keyboard direction keys to move the cell pointer where ever you would like. Once you relocate and press enter the macro restarts where the pause occurred and continues until it finishes. I don't know if this is possible in Excel but would like to be able to do the same with VBA. Thanks for your response I greatly appreciate it.


    Regards
    Slotcardan

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Pause Macro, move to another cell, continue macro execution

    Why don't you use code to move down to the next part number instead of selecting it manually?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    03-04-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Pause Macro, move to another cell, continue macro execution

    The macro actually selects the next cell down in column "B". However, the actual part number that I want may be down 3 cells lower or more, so I would like a way to pause the macro, move the cell pointer down 3 cells then press enter and continue the macro execution. Most of the time the next cell down in column "B" is the right part number that I want to work on, however there are those instances when this is just not so.


    Thank You

    Regards

    Slotcardan

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Pause Macro, move to another cell, continue macro execution

    Hello slotcardan,

    Welcome to the Forum!

    To expedite a solution, you should post a copy of your workbook. This will allow all code to be tested against the actual data and layout. If your workbook contains sensistive information, please redact it before posting.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. Pause macro to enter value, continue macro
    By DamienC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2008, 09:01 AM
  2. Pause macro, select file, continue macro
    By DamienC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-18-2008, 07:18 AM
  3. [SOLVED] Can you pause a macro in excel to input data and continue?
    By Hutch in forum Excel General
    Replies: 1
    Last Post: 05-05-2006, 01:20 PM
  4. Create a button to continue old macro execution
    By Brian in forum Excel General
    Replies: 0
    Last Post: 05-15-2005, 06:06 PM
  5. [SOLVED] Macro Pause, show message, continue
    By davegb in forum Excel General
    Replies: 3
    Last Post: 02-11-2005, 01:06 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