+ Reply to Thread
Results 1 to 7 of 7

Macro stops at colleague but not with me

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Macro stops at colleague but not with me

    I have a macro where I want to automatically import a text file. The macro works fine for me, but not for my colleague for whom the macro is intended - and I can't figure out why...

    When my colleague runs the macro it stops at the line:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Macro stops at colleague but not with me

    it might be because the .refresh BackgroundQuery already is = to false
    so you should ask excel to determine the state
    Please Login or Register  to view this content.
    let me know if that worked

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Re: Macro stops at colleague but not with me

    Hi scott, what would the entire macro look like then - I tried to simply copy paste your line, but it didn't work.

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Re: Macro stops at colleague but not with me

    What would the entire macro look like then - I tried to simply copy paste the suggested line, but it didn't work.

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Macro stops at colleague but not with me

    maybe you could upload a sample workbook? maybe my suggestion needs to be tweaked a bit

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2021
    Posts
    50

    Re: Macro stops at colleague but not with me

    Hi Scott, sorry for the late reply. Unfortunately the spreadsheet is pretty extensive, so I would'nt be able to upload a sample. Is there some other way to solve it, by, for example, adding your suggestion to the rest of my original macro?

  7. #7
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Macro stops at colleague but not with me

    not sure, you could try just taking out the line that doesn't work for your cowoker and see if it runs then, you can manually set the background refresh to false under the data tab, connections then select the connection and click properties then uncheck background refresh

+ 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