Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Code or Formula?

I have multiple spreadsheets that pull data from a Sybase database.

I've set several of the sheets to refresh ever n minutes, and on open,
but would like to show on a summary sheet the time/date of the most
recent refresh.

Ideas? I'm suspecting it would be code rather than formula and I'm to
say the least a novice on code.

O.B.D.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Code or Formula?

I am not sure this will work, but its worth a try:

Setup a worksheet change event or calculate event macro to do the recording
see:

http://www.mvps.org/dmcritchie/excel/event.htm
--
Gary''s Student


"Oggie Ben Doggie" wrote:

I have multiple spreadsheets that pull data from a Sybase database.

I've set several of the sheets to refresh ever n minutes, and on open,
but would like to show on a summary sheet the time/date of the most
recent refresh.

Ideas? I'm suspecting it would be code rather than formula and I'm to
say the least a novice on code.

O.B.D.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Code or Formula?

There are no hard and fast rules, it depends on the requirement, and on the
amount of data, and what needs to done, but on balance, I would prefer
formulae, as they would normally out-perform VBA.

However, your particular case, needing to overwrite a value conditionally,
seems to require VBA. Usually, change events would handle it, but as you are
populating the cells via a data query, that will not trigger the change
event, so I think you will need to link a cell to one of those cells, and
test the values in the calculate event.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Oggie Ben Doggie" wrote in message
oups.com...
I have multiple spreadsheets that pull data from a Sybase database.

I've set several of the sheets to refresh ever n minutes, and on open,
but would like to show on a summary sheet the time/date of the most
recent refresh.

Ideas? I'm suspecting it would be code rather than formula and I'm to
say the least a novice on code.

O.B.D.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Code or Formula?

Thanks very much - you and the next post both indicate a change event is
the way to go so I'll dig into it. Thanks!

Oggie / Ben / ND




*** Sent via Developersdex http://www.developersdex.com ***
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Code or Formula?

Thanks very much - you and the previous poster both indicated a change
event is the way to go so I'll dig into it. Thanks!

Oggie / Ben / ND

Sorry for the "form" reply :-)

*** Sent via Developersdex http://www.developersdex.com ***
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
formula or vba code Nader Excel Worksheet Functions 14 August 16th 06 10:54 AM
formula code nobbyknownowt Excel Discussion (Misc queries) 5 August 10th 06 05:40 PM
formula or code Monty Excel Worksheet Functions 10 January 10th 05 09:06 AM
Help with code or formula Gareth[_3_] Excel Programming 8 October 18th 03 12:43 AM
Formula or VBA code help Michael168[_2_] Excel Programming 3 September 15th 03 06:00 PM


All times are GMT +1. The time now is 07:10 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"