+ Reply to Thread
Results 1 to 1 of 1

Help : how can I specify the location of a DLL file in my Excel macro?

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    HK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Help : how can I specify the location of a DLL file in my Excel macro?

    Hi, I am a beginner in Excel Macro, trying the WINHLLAPI interface, planning to control QWS3270 from an Excel spreadsheet. I can successfully trigger the QWS3270 to open, and can get the data as displayed on the screen.

    But when I run the following :
    Call WinHLLAPI(nnn, sss, lll, ppp)

    The system displayed the following error:

    File not found : C:\program files (x86)\QWS3270 Secure\WHLLAPI.DLL

    However, the WHLLAPI.DLL is indeed there in the above directory, and my Declare statement is as follows)

    Public Declare Sub WinHLLAPI _
    Lib "C:\Program Files (x86)\QWS3270 Secure\whllapi.dll" _
    (ByRef f As Long _
    , ByVal s As String _
    , ByRef l As Long _
    , ByRef r As Long)

    What should the proper coding in the above Declare statement, or was my Call statement incorrect?

    Can you help ? Much appreciated.
    Last edited by hkharrytse; 08-01-2013 at 10:53 PM.

+ 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. Save as macro that specifies file type, file location and takes file name from three cells
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-13-2013, 10:09 PM
  2. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  3. Replies: 1
    Last Post: 10-31-2012, 11:19 AM
  4. saving file name and location with excel macro
    By Alex Suardi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:20 PM
  5. saving file name and location with excel macro
    By Alex Suardi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:17 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