+ Reply to Thread
Results 1 to 2 of 2

open other excel application by vba

  1. #1
    Registered User
    Join Date
    07-06-2006
    Location
    Amsterdam
    Posts
    20

    open other excel application by vba

    Hi,

    any one knows how to use vba from this excel application to create a new excel appication?

    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: open other excel application by vba

    Dim xlApp As Object
    Dim xlWB As Object

    Set xlApp = CreateObject("Excel.Application")

    ' if you want to make it visible
    xlApp.Visible = True

    'and to do stuff with it
    Set xlWB = xlApp.Workbooks.Open("C:\MyFiles\myFile.xls")

    'and at the end
    xlWB.Save
    xlWB.Close
    xlApp.Quit
    Set xlWB = Nothing
    Set xlApp = Nothing



    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "ppyxl" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > any one knows how to use vba from this excel application to create a
    > new excel appication?
    >
    > Thanks
    >
    >
    > --
    > ppyxl
    > ------------------------------------------------------------------------
    > ppyxl's Profile:

    http://www.excelforum.com/member.php...o&userid=36116
    > View this thread: http://www.excelforum.com/showthread...hreadid=559307
    >




+ 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