Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro and Edit query help

Hi
I'm new with VB in excel and I would like to automate a web query
function to gather new data everytime I change the stock symbol. Here
are the descriptions and any hints or tips is always appreciated.

sheet #1, enter symbol into cell (C3)
copy symbol in C3
Go to sheet #2
Edit query
(http://table.finance.yahoo.com/d?a=1...&f=2004&g=d&s=)
paste symbol into box
Get data
Select entire page
Import
Go back to sheet #1

Is there a macro for this?
I am having trouble when i have to bring in the webquery.


THanks


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro and Edit query help

Is this right? what am i missing? it does not seem to work. I'm usin
Office system 2003

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$3" Then
With QueryTables("myQueryTable")
.Connection
"URL;http://table.finance.yahoo.com/d?a=...&g=d&s=)" & _
CStr(Range("C3").Value) & "&d=t"
.Refresh False
End With
End If
End Su

--
Message posted 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
Query Wizard Cannot Be Used To Edit This Query Carl Excel Discussion (Misc queries) 6 October 17th 06 09:59 PM
why does edit query button not open query needlemaker Excel Discussion (Misc queries) 0 June 29th 06 03:18 PM
MS Query - unable to edit query Excel GuRu Excel Discussion (Misc queries) 9 April 12th 06 04:29 PM
Problem with MS Query - can't edit query jarems Excel Discussion (Misc queries) 2 December 12th 05 09:42 AM
Excel open an existing MS Query in edit mode via macro attached to a button. systems analyst Excel Programming 1 October 3rd 03 12:08 PM


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