+ Reply to Thread
Results 1 to 3 of 3

How to share variable values between 2 Workbooks ?

  1. #1
    Yves Le Hurt
    Guest

    How to share variable values between 2 Workbooks ?

    Hi,
    Does anyone know how to do this ?
    Thanks in advance for your help.

    Yves Le Hurt

  2. #2
    Tom Ogilvy
    Guest

    Re: How to share variable values between 2 Workbooks ?

    Use one workbook as the source of the varialble value. Link a cell/cells in
    the second workbook to the cell/cells in the first workbook with these
    values.



    --
    Regards,
    Tom Ogilvy

    "Yves Le Hurt" <Yves Le Hurt@discussions.microsoft.com> wrote in message
    news:7C2B09C6-BBEE-4163-9318-F26BC30ED98D@microsoft.com...
    > Hi,
    > Does anyone know how to do this ?
    > Thanks in advance for your help.
    >
    > Yves Le Hurt




  3. #3
    Norman Jones
    Guest

    Re: How to share variable values between 2 Workbooks ?

    Hi Yves,

    Try something like:

    '=============>>
    Public Sub Tester0401()
    Dim myVar

    myVar = 100

    Application.Run "'Book2.xls'!myMacroName", myVar

    End Sub
    '<<=============


    ---
    Regards,
    Norman


    "Yves Le Hurt" <Yves Le Hurt@discussions.microsoft.com> wrote in message
    news:7C2B09C6-BBEE-4163-9318-F26BC30ED98D@microsoft.com...
    > Hi,
    > Does anyone know how to do this ?
    > Thanks in advance for your help.
    >
    > Yves Le Hurt




+ 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