+ Reply to Thread
Results 1 to 2 of 2

API calls only work sometimes

  1. #1
    Registered User
    Join Date
    04-15-2020
    Location
    California
    MS-Off Ver
    2010
    Posts
    1

    API calls only work sometimes

    I have some API calls (not shown here) which remove the "X" in the upper right-hand corner of a userform called 'InitializationProgress" in Excel. When I run the macro "tt" (below), the userform shows up without the "X", as desired. However, when I run the "Countdown" macro (which turns the userform into a progress bar via the function WaitForm), the "X" doesn't disappear. Any help to fix this is appreciated!

    Please Login or Register  to view this content.
    I should also mention that in the InitializationProgress code, there are these snippets, which are what actually makes the "X" disappear via "SystemButtonSettings", which is code in another module that actually does the disappearing.

    Please Login or Register  to view this content.
    Last edited by msnyder701; 04-15-2020 at 11:51 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: API calls only work sometimes

    Hi, welcome to the form.
    You will have to add a Initialize and an Activate event to the userform when running it from a macro like you do.
    I'v no problems with my X when I require it, but my code is probably different, I don't know what SystemButtonSettings is, problably a self written Function?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say 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. [SOLVED] Calculation how many calls/cases and agent can work Contact Centre
    By MarkoGreenio in forum Excel General
    Replies: 11
    Last Post: 07-08-2019, 04:18 AM
  2. Making API Calls
    By rollin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2017, 10:55 AM
  3. Repeat Calls
    By prash.r99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2014, 08:57 AM
  4. Hi everyone calls me Boomerang,
    By Boomerang in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-03-2013, 08:20 PM
  5. VBA - API calls for FTP
    By lukeB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2011, 05:24 AM
  6. Calls between certain hours
    By bkelt00 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-24-2008, 07:46 PM

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