+ Reply to Thread
Results 1 to 2 of 2

VB Error - But runs fine from VB for Application

  1. #1
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    VB Error - But runs fine from VB for Application

    Hi,

    I have a script I am trying to run (I'll add the script code below). I am linking it to a button so that if you click the button it runs the script. When I do that, it throws an error: System Error &H80070057 (-2147024809). Th parameter is incorrect. The weird this is if I view my code and click run script from the application, it works fine and pulls in the data I need. What could be the trouble?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: VB Error - But runs fine from VB for Application

    My bad. I assigned the wrong script to the button.

+ 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] Script Runs fine, tried again 1 second later; error message appears...
    By schulzy175 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2017, 05:32 PM
  2. [SOLVED] This macro runs fine the first time, but generates a Type Mismatch error after that.
    By armlegx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2016, 01:46 PM
  3. VBA runs slow locally, runs fine when connected remotely
    By jbzy324 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2015, 10:05 PM
  4. Prints fine from VBE but not when code runs
    By ThumbsUp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2014, 03:26 PM
  5. Error with application.ontime...macro runs twice next day..
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2013, 11:41 PM
  6. Macro Runs fine in debug but not from ComboBox
    By jaslake in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-25-2009, 10:17 AM
  7. [SOLVED] VBA Runs fine on my PC but errors on other PC's
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2005, 02: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