+ Reply to Thread
Results 1 to 3 of 3

Question: loading a file into a Object?

  1. #1
    Michael Vaughan
    Guest

    Question: loading a file into a Object?

    Hello Everyone,

    I inserted an object into my Excel workbook. It will boot up my NOTEPAD.EXE
    program. Is there a way to execute it and have it automatically load a file
    name into Notepad??? I want to execute notepad, and then automatically load
    a .bat file into it so that I can edit it.

    Hope you can help... Michael



  2. #2
    Tom Ogilvy
    Guest

    Re: Question: loading a file into a Object?

    Look at excel vba help on the shell command.

    --
    Regards,
    Tom Ogilvy


    "Michael Vaughan" <michael@mvaughan.net> wrote in message
    news:aLSdnVGNKMbkxCzenZ2dnUVZ_sednZ2d@comcast.com...
    > Hello Everyone,
    >
    > I inserted an object into my Excel workbook. It will boot up my

    NOTEPAD.EXE
    > program. Is there a way to execute it and have it automatically load a

    file
    > name into Notepad??? I want to execute notepad, and then automatically

    load
    > a .bat file into it so that I can edit it.
    >
    > Hope you can help... Michael
    >
    >




  3. #3
    Chip Pearson
    Guest

    Re: Question: loading a file into a Object?

    Use the Shell statement.

    Shell "notepad.exe 'h:\test\text.txt'", vbNormalFocus



    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Michael Vaughan" <michael@mvaughan.net> wrote in message
    news:aLSdnVGNKMbkxCzenZ2dnUVZ_sednZ2d@comcast.com...
    > Hello Everyone,
    >
    > I inserted an object into my Excel workbook. It will boot up
    > my NOTEPAD.EXE program. Is there a way to execute it and have
    > it automatically load a file name into Notepad??? I want to
    > execute notepad, and then automatically load a .bat file into
    > it so that I can edit it.
    >
    > Hope you can help... Michael
    >
    >




+ 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