+ Reply to Thread
Results 1 to 3 of 3

export data from excel using VBA

  1. #1
    rocket
    Guest

    export data from excel using VBA

    I have set up a button on excel so that when pressed it opens another
    application and performs some actions to obtain some data. I used VBA record
    to copy my actions in the other application and used preset figures to use
    for inputting. However, I now need to know how to instead use figures I will
    be inputting in cells in excel. any help would be greatly appreciated.

    thanks

  2. #2
    Tom Ogilvy
    Guest

    Re: export data from excel using VBA

    You can modify your code to get value from cells like this

    Dim MyVar as Variant
    MyVar = WorkBooks("Bob.xls").Worksheets("Inputs").Range("A1").Value

    then in other code where you have hard coded values, you can replace them
    with MyVar (as an example).

    --
    Regards,
    Tom Ogilvy

    "rocket" <rocket@discussions.microsoft.com> wrote in message
    news:AFB2EB74-F922-4745-A060-AAA1AB1F6A2A@microsoft.com...
    > I have set up a button on excel so that when pressed it opens another
    > application and performs some actions to obtain some data. I used VBA

    record
    > to copy my actions in the other application and used preset figures to use
    > for inputting. However, I now need to know how to instead use figures I

    will
    > be inputting in cells in excel. any help would be greatly appreciated.
    >
    > thanks




  3. #3
    rocket
    Guest

    Re: export data from excel using VBA

    thanks Tom

    "Tom Ogilvy" wrote:

    > You can modify your code to get value from cells like this
    >
    > Dim MyVar as Variant
    > MyVar = WorkBooks("Bob.xls").Worksheets("Inputs").Range("A1").Value
    >
    > then in other code where you have hard coded values, you can replace them
    > with MyVar (as an example).
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "rocket" <rocket@discussions.microsoft.com> wrote in message
    > news:AFB2EB74-F922-4745-A060-AAA1AB1F6A2A@microsoft.com...
    > > I have set up a button on excel so that when pressed it opens another
    > > application and performs some actions to obtain some data. I used VBA

    > record
    > > to copy my actions in the other application and used preset figures to use
    > > for inputting. However, I now need to know how to instead use figures I

    > will
    > > be inputting in cells in excel. any help would be greatly appreciated.
    > >
    > > thanks

    >
    >
    >


+ 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