Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default a macro to count coloured values and copy....

Hi....
im pretty much starting out with macro's and vba.......

I am trying to collect some stock data via a query and create a macro
to loop the following process every minute so I can plot a chart from
it within excel.............

What I need to do is this...........

create a macro that will repeat this following process every minute
until I close the excel folder:

I have a web query which retrieves data on a table from a web page,
refresh every minute.

The macro has to read the stock prices in one particular column (30
prices)after every refresh, determine whether the colour of the price
is green(+) or red(-).

The macro then needs to calculate how many values are green, and how
many are red. (e.g 25 green stocks, 5 red stocks)

Then it needs to place the amounts of each into two columns (B+C) in
sheet 2 of the workbook.

It then has to repeat this process each time the web query has
refreshed the data, but this time placing the new amounts of green and
red in the next 2 blank cells in columns B + C on sheet2..........

So I get a list of amounts for every minute so the chart can be plotted
against a time frame.....................



can I ask another question while Im here........???????

Can data be retrieved with a web query from a live streaming java
table............?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.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
I'd like to know how we can count coloured cells? Atomic Excel Worksheet Functions 3 December 1st 09 10:24 PM
Count using Coloured Cells enna49 Excel Discussion (Misc queries) 2 January 20th 09 09:58 AM
COUNT COLOURED CELL adeel via OfficeKB.com Excel Discussion (Misc queries) 1 May 28th 07 03:25 PM
How do I count coloured cell in a particular range ? Nirmal Excel Worksheet Functions 1 April 17th 07 09:14 AM
count coloured cells ile Excel Worksheet Functions 4 June 19th 06 08:38 AM


All times are GMT +1. The time now is 06:57 AM.

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"