+ Reply to Thread
Results 1 to 15 of 15

Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to run

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to run

    Hello!

    I'm running a macro that utilizes an API call from quickbase to pull in data into my workbook.

    It has successfully run on two computers using Excel 2016, and on one computer running 2016, it stalls when importing data- it also did this on my primary computer, which runs 2013.

    While creating the macro, I put in:

    Please Login or Register  to view this content.
    Just removed it to see if any error messages were popping up. I'm getting the popup that says, "We can't update some of the links in your workbook right now."

    I can't break the link, because it is on a protected sheet in a document that doesn't exist. And if I continue without updating, the macro stalls. It gets stuck on the last step of the macro prior to import- with no further error messages.

    Again, this has successfully run on other computers.


    Any ideas for how to address this? I initially thought the problem was that I'm running 2013, but it stalled on 2016, too.
    Last edited by jamie.harris; 05-25-2018 at 10:55 AM.

  2. #2
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Where it gets stuck:

    Please Login or Register  to view this content.
    Last edited by jamie.harris; 05-25-2018 at 10:46 AM.

  3. #3
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    that sounds more like an access restriction...
    if the code runs on other computers, then there's no problem with the code - it works.
    likely, the specific computers that cannot complete the code run means they have some sort of access restriction towards where the source data exists
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  4. #4
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Hmmm-- where would I adjust that?

    My computer has pretty low/non-existent requirements in the trust center.

    Where else would an access restriction come into play?

  5. #5
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Also, happy to provide any more code if that's helpful for clarifying what's going on here.

  6. #6
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by jamie.harris View Post
    Also, happy to provide any more code if that's helpful for clarifying what's going on here.
    Update: I just recreated the filepath and workbook that I got a warning about and now there is no warning, but the macro is still stalling.

  7. #7
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by jamie.harris View Post
    Update: I just recreated the filepath and workbook that I got a warning about and now there is no warning, but the macro is still stalling.
    I just added in a few more status bars after every line of the code to see exactly where things stopped working.

    It looks like the problem is in this line:
    Please Login or Register  to view this content.
    Again, this intermittently works on other computers- without the macro changing at all or the filepath on the computer being altered. Any ideas as to why there would be a problem at this point in the macro?

  8. #8
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    i see that your code is opening a file on some path. Try to open that source file manually using the computers where the VBcode stalls. - like locate the file and open it. take note if there are any error messages.
    if there are no error messages take note what exactly happens, does the file open for too long - and such...

  9. #9
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by ag273n View Post
    i see that your code is opening a file on some path. Try to open that source file manually using the computers where the VBcode stalls. - like locate the file and open it. take note if there are any error messages.
    if there are no error messages take note what exactly happens, does the file open for too long - and such...
    It's actually referring to the workbook where the macro currently lives. That line reopens the file where the macro is running.

    When I open the source file manually, it opens normally- no delays or errors.

  10. #10
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by jamie.harris View Post
    It's actually referring to the workbook where the macro currently lives. That line reopens the file where the macro is running.

    When I open the source file manually, it opens normally- no delays or errors.
    but the same macro workbook needs to be opened on different computers right. did you try open manually the target file in the macro? (not the macro workbook) - using the other computers where the code stalls

  11. #11
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by ag273n View Post
    but the same macro workbook needs to be opened on different computers right. did you try open manually the target file in the macro? (not the macro workbook) - using the other computers where the code stalls
    The target file IS the workbook. And it opens on computers where the code stalls.

    (Thank you for your help, I know this is a weird situation.)
    Last edited by jamie.harris; 05-25-2018 at 03:11 PM.

  12. #12
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by jamie.harris View Post
    The target file IS the workbook. And it opens on computers where the code stalls.

    (Thank you for your help, I know this is a weird situation.)
    the workbook runs the code to open another file is openning itself?...

  13. #13
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by ag273n View Post
    the workbook runs the code to open another file is openning itself?...
    Yeah- in another life, this macro was housed in another workbook, called "UpdateAll", and would open this workbook, which we call the "Data" form- and then replace some of the data.

    I didn't take out this line, because it didn't seem to be causing other problems, and didn't stop the macro from running for other people.

    However, I just took it out, and it's running for me!

    Going to test this on another computer, and once that works, I'm marking this as solved!

    Thank you so much!

  14. #14
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    if that line of code is not needed for it to function properly, i agree getting rid of it.. or maybe just change it into a comment, that way, its still there, just not active

  15. #15
    Registered User
    Join Date
    05-25-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    20

    Re: Excel Macro Runs on Some Computers, Not All- Stalls for computers where it fails to ru

    Quote Originally Posted by ag273n View Post
    if that line of code is not needed for it to function properly, i agree getting rid of it.. or maybe just change it into a comment, that way, its still there, just not active
    That was it! It's working perfectly now!

+ 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 not working in terminal computers
    By ragauskas in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-03-2016, 01:45 PM
  2. [SOLVED] Macro's not working on other computers (help please)
    By 4lowie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2013, 09:33 PM
  3. Macro won't work on different computers
    By bditomasso in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2013, 04:54 PM
  4. Problem with add-ins & macro's on multiple computers
    By henridenys in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-17-2013, 07:37 AM
  5. [SOLVED] VBA macro won't run on other computers
    By ljuarez714 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2012, 02:44 PM
  6. Macro works on some computers but on others it doesn't
    By SEBS_PARADISE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2011, 04:35 PM
  7. Excel Macro Acts Differently on Different Computers, even with same version
    By dbaft in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2011, 07:58 AM

Tags for this Thread

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