+ Reply to Thread
Results 1 to 4 of 4

Running Macro's after Refreshing data

  1. #1
    Bmistry
    Guest

    Running Macro's after Refreshing data

    Hi,

    I have spreadsheet which is an extract from an access database and the data
    can be refreshed automatically from the DB.

    I would like the spreadsheet to carry out a number of actions once the data
    has been refreshed without having the user push any further buttons. Is there
    some programming i can use that will invoke a macro to run these commands as
    soon as the data has been refreshed?

    I'm quite new to programming so if you can provide examples of code, it
    would be much appreciated!

    Thanks

    Bhavini

  2. #2
    K Dales
    Guest

    RE: Running Macro's after Refreshing data

    Answer depends in part on what you use to trigger the refresh. Do you have a
    control (e.g. command button) to initiate a refresh, or do you have the query
    refresh on file open, or do you have it set to refresh if a parameter cell
    value changes?
    --
    - K Dales


    "Bmistry" wrote:

    > Hi,
    >
    > I have spreadsheet which is an extract from an access database and the data
    > can be refreshed automatically from the DB.
    >
    > I would like the spreadsheet to carry out a number of actions once the data
    > has been refreshed without having the user push any further buttons. Is there
    > some programming i can use that will invoke a macro to run these commands as
    > soon as the data has been refreshed?
    >
    > I'm quite new to programming so if you can provide examples of code, it
    > would be much appreciated!
    >
    > Thanks
    >
    > Bhavini


  3. #3
    Bmistry
    Guest

    RE: Running Macro's after Refreshing data

    Hi,

    The query refreshes, when the user initiates by pushing the refresh data
    button under the Data menu on the main tool bar.

    Thanks


    "K Dales" wrote:

    > Answer depends in part on what you use to trigger the refresh. Do you have a
    > control (e.g. command button) to initiate a refresh, or do you have the query
    > refresh on file open, or do you have it set to refresh if a parameter cell
    > value changes?
    > --
    > - K Dales
    >
    >
    > "Bmistry" wrote:
    >
    > > Hi,
    > >
    > > I have spreadsheet which is an extract from an access database and the data
    > > can be refreshed automatically from the DB.
    > >
    > > I would like the spreadsheet to carry out a number of actions once the data
    > > has been refreshed without having the user push any further buttons. Is there
    > > some programming i can use that will invoke a macro to run these commands as
    > > soon as the data has been refreshed?
    > >
    > > I'm quite new to programming so if you can provide examples of code, it
    > > would be much appreciated!
    > >
    > > Thanks
    > >
    > > Bhavini


  4. #4
    N10
    Guest

    Re: Running Macro's after Refreshing data

    hI b

    The refresh button will contain some code as click or double click event
    ;This code performs your refresh. It will be present as code or as a call
    for some other macro.

    To perform other actions after the existing code executes simply add more
    code or write a seperate proceduure and then call it at the appropriate
    point

    as with :

    Private Sub CommandButton1_Click()

    code to refresh workbook

    code to do what you want

    End Sub

    Best N10



    "Bmistry" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > The query refreshes, when the user initiates by pushing the refresh data
    > button under the Data menu on the main tool bar.
    >
    > Thanks
    >
    >
    > "K Dales" wrote:
    >
    >> Answer depends in part on what you use to trigger the refresh. Do you
    >> have a
    >> control (e.g. command button) to initiate a refresh, or do you have the
    >> query
    >> refresh on file open, or do you have it set to refresh if a parameter
    >> cell
    >> value changes?
    >> --
    >> - K Dales
    >>
    >>
    >> "Bmistry" wrote:
    >>
    >> > Hi,
    >> >
    >> > I have spreadsheet which is an extract from an access database and the
    >> > data
    >> > can be refreshed automatically from the DB.
    >> >
    >> > I would like the spreadsheet to carry out a number of actions once the
    >> > data
    >> > has been refreshed without having the user push any further buttons. Is
    >> > there
    >> > some programming i can use that will invoke a macro to run these
    >> > commands as
    >> > soon as the data has been refreshed?
    >> >
    >> > I'm quite new to programming so if you can provide examples of code, it
    >> > would be much appreciated!
    >> >
    >> > Thanks
    >> >
    >> > Bhavini




+ 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