+ Reply to Thread
Results 1 to 3 of 3

Quick help - Error file not found

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    United States
    MS-Off Ver
    Exce 2010
    Posts
    2

    Quick help - Error file not found

    Hey guys I'm new here and pretty frustrated with trying to get some basic code going on a new project. I'm not very good at this stuff but I've done some VBA on my own usually by Googling something close to what I need and then messing with it to figure out how it works. However that requires something that works so I can manipulate it to see what changes etc.

    I'm trying to use Excel 2010 VBA to connect to FXCM for historical Forex data. They have a Forexconnect API and COM, both of which I have installed as instructed to

    c:\program files\candleworks\ForexConnectAPTx64

    and have added the fxcore2_com reference through the tools menu in the VBA editor. This page contains their info on the COM and has links towards the bottom for the API and COM. There are samples provided in

    C:\Program Files\Candleworks\ForexConnectAPIx64\samples\com\VBA

    and there is a help file located at

    C:\Program Files\Candleworks\ForexConnectAPIx64\doc\chm\ForexconnectAPICOM.chi.

    First off, the sames don't load when you open the file from Windows explorer, only if I open them from within Excel. I started with the Login.xls and the Login part of the help file. Trying to replicate the code from the help file doesn't work and gives me a Run-time error '-2147024894 (80070002)': Automation error The system cannot find the file specified at the bold portion.

    I have :

    Please Login or Register  to view this content.
    The help file has this:

    1. Create an instance of the main COM class of library:

    Please Login or Register  to view this content.
    2. Create a session:

    Please Login or Register  to view this content.
    I have tried dealing with their online chat several times but they don't deal with this and I have emailed their API support who first sent me to the API download page which I had already been to and then told me that VBA is not VB which is irrelevant considering I specified I was working in VBA and had already downloaded the API and the COM so that I could use it in Excel. Any help would be greatly appreciated as I just want to get these sample files working, starting with the login so I can go about things as usual.
    Last edited by MeltManBob; 04-03-2013 at 06:06 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,996

    Re: Quick help - Error file not found

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    United States
    MS-Off Ver
    Exce 2010
    Posts
    2

    Re: Quick help - Error file not found

    Fixed initial post, thanks for the correction.

  4. #4
    Registered User
    Join Date
    04-03-2013
    Location
    United States
    MS-Off Ver
    Exce 2010
    Posts
    2

    Re: Quick help - Error file not found

    Hey guys, can I get some help here?

+ 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