Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
N10 N10 is offline
external usenet poster
 
Posts: 141
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
running macro's in Excel 2007 Texas Tonie[_2_] Excel Worksheet Functions 0 May 4th 09 07:07 PM
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
How can I control the macro's running time? Ming[_2_] Excel Programming 5 December 22nd 05 08:25 PM
Running XY chart labeller using a macro's parameters and arguments. Hari Prasadh Charts and Charting in Excel 1 July 12th 05 05:00 PM
shortcut key not not running macro's all of a sudden Todd Excel Programming 1 November 11th 03 08:19 PM


All times are GMT +1. The time now is 12:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"