Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Web Query and Dynamic web address

I am writing macros to do Web Queries using Excel 2003 and downloading the
information from Anumati.com

When you type in a stock symbol at Anumati.com, you are given a new web page
to select what type of reports you want to see, Quarterly or Annually. After
you make your selection, it displays the requested report in the following
format:

http://www.anumati.com/DynamicReport...002;28/09/2002

It uses specific dates at the end of the URL for the Quarterly Report of
each company.

I originally thought that once I figured out what Year End a company was
using, I could assume Quarterly ending periods. ie. YrEnd = Dec. 31,2004 --
QtrEnd = March 31, June 30, Sept 30, Dec. 30. But as you can see from the
example above, Quarter ends don't necessarily mean last day of the month for
each 3 month period.

I built a macro that uses these dates to build a string with the correct
URL to download. But my logic breaks down when a company has non-standard
quarter or annual ending dates, ie

A2 = http://www.anumati.com/DynamicReport.aspx?id=TR&report=
A3 = Report requested (IS-Q - Income Statement Quarterly)
A4 = &dates=
A5 = quarter ending dates as determined by finding the correct year ending
date

A1 = A2&A3&A4&A5

A1 is the string that I use in the macro as the URL to download.

Is there an easier way to accomplish the same task without building a text
string to use as the URL? As I mentioned the dates can change depending on
what company you select.

I would appreciate any help.

Thanks
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
Dynamic Assignment of a Cell Address In Formula tb Excel Worksheet Functions 9 December 14th 07 06:52 AM
Dynamic Formula with Dynamic Address dmz_asdf Excel Worksheet Functions 7 December 15th 06 07:13 PM
Average Function and dynamic cell address spartanmba Excel Worksheet Functions 2 September 30th 06 09:24 PM
Dynamic flexible cell address dewsbury Excel Discussion (Misc queries) 2 March 9th 06 08:10 PM
Goto a dynamic cell address within a macro blkane Excel Discussion (Misc queries) 3 June 8th 05 07:08 PM


All times are GMT +1. The time now is 04:59 PM.

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

About Us

"It's about Microsoft Excel"