+ Reply to Thread
Results 1 to 4 of 4

Macro doesn't run with F5, but runs with F8--step by step

  1. #1
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Macro doesn't run with F5, but runs with F8--step by step

    Hi guys,

    Please find below my macro. Do you know why this happens?
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Macro doesn't run with F5, but runs with F8--step by step

    this is the offending line
    Please Login or Register  to view this content.
    right before that you put
    Please Login or Register  to view this content.
    if you move
    PT.ManualUpdate = True to be the last step before copying you wont run into this problem

    ie
    Please Login or Register  to view this content.
    Last edited by humdingaling; 06-12-2018 at 03:58 AM. Reason: typo - offending
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro doesn't run with F5, but runs with F8--step by step

    It seems to work OK if you remove the second PT.ManualUpdate = True line.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Macro doesn't run with F5, but runs with F8--step by step

    perfect thank you!

+ 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. Macro errors when running, but works when done step by step
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2018, 03:54 PM
  2. Replies: 2
    Last Post: 01-11-2017, 12:24 AM
  3. VBA Code works by step by step, doesn't work by running
    By lucasar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2016, 06:33 AM
  4. [SOLVED] Stock Chart apparence is different if Macro1 runs step by step not directly !
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-23-2014, 04:31 AM
  5. Macro runs fine when I step through with F8, but crashes Excel when I run it
    By ncalkins in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 09:18 PM
  6. [SOLVED] preventing simple zoom macro from running step by step
    By reece1984 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-11-2012, 06:13 AM
  7. [SOLVED] I need step by step instructions to create a macro for 10 imbedde.
    By diana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2005, 10: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