+ Reply to Thread
Results 1 to 3 of 3

open application ini file error

  1. #1
    Registered User
    Join Date
    09-21-2014
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    open application ini file error

    hello all,

    i'm quite new to macro programming and have been following this board and past q&a's for help but i couldnt find anything for this problem so i hope someone can help.

    i need to write a macro to open a application but unfortunately it keeps saying "*****.ini" not located or something like that. i was hoping someone could guide me on how to solve this error and how to automate what i want it to do. i basically want it to copy a cell of data in excel and have the application search it then paste a separate cell of data in the search result.

    any help would be hugely appreciated. thank you

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: open application ini file error

    I would guess it's the application you are opening that is complaining about the INI file - but that's impossible to say without seeing what code you do have...

    Possible you could post it?

  3. #3
    Registered User
    Join Date
    09-21-2014
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: open application ini file error

    thanks cytop, i dont really have any code because what i have tried keeps failing.

    but this is the code i am trying to use...i hope i re typed it out properly again

    Private Declare PtrSafe Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" (ByVal hWnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, _
    ByVal lpParameters As String, ByVal lpDirectory As String, _
    ByVal nShowCmd As Long) As Long


    Sub OpenFile()
    Dim FileName As String
    Dim Result As Long
    FileName = "** path of the file.exe**"
    Result = ShellExecute(0&, vbNullString, FileName, _
    vbNullString, vbNullString, vbNormalFocus)
    If Result < 32 Then MsgBox "Error"
    End Sub


    thanks for any help

+ 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. application.workbooks.open False Error
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2012, 07:25 PM
  2. Error message with application get open filename
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-21-2011, 06:07 AM
  3. [SOLVED] How do I start a new application when I open a file?
    By jkwillis99 in forum Excel General
    Replies: 1
    Last Post: 01-13-2006, 09:20 AM
  4. Excel opening but file does not open with Application
    By eWisdom in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 02:06 PM
  5. Open file in other application
    By bhofsetz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-08-2005, 12:24 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