#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Automatic weather

Is it possible to have a cell/field that would check the current weather and
put the temperature in that cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Automatic weather

Use this macro I just recorded to establish an external query to
weather.com. Then change the zip from 78734 and simply refresh as desired.


Sub Macro6()
'
' Macro6 Macro
'

'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.weather.com/weather/local/78734?lswe=78734&lwsa=WeatherLocalUndeclared&from= searchbox_localwx"""
_
, Destination:=Range("$A$1"))
.Name = _
"78734?lswe=78734&lwsa=WeatherLocalUndeclared&from =searchbox_localwx""_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Is it possible to have a cell/field that would check the current weather
and
put the temperature in that cell?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Automatic weather

Great Thank You. It is working great.

One more thing.
This is great if you want the tempeture of right now, BUT what if you want
the average temperature for the day. How would you get that?


"Don Guillett" wrote:

Use this macro I just recorded to establish an external query to
weather.com. Then change the zip from 78734 and simply refresh as desired.


Sub Macro6()
'
' Macro6 Macro
'

'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.weather.com/weather/local/78734?lswe=78734&lwsa=WeatherLocalUndeclared&from= searchbox_localwx"""
_
, Destination:=Range("$A$1"))
.Name = _
"78734?lswe=78734&lwsa=WeatherLocalUndeclared&from =searchbox_localwx""_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Is it possible to have a cell/field that would check the current weather
and
put the temperature in that cell?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Automatic weather

Yesterday
http://www.weather.com/weather/pastw...nav_undeclared

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Great Thank You. It is working great.

One more thing.
This is great if you want the tempeture of right now, BUT what if you want
the average temperature for the day. How would you get that?


"Don Guillett" wrote:

Use this macro I just recorded to establish an external query to
weather.com. Then change the zip from 78734 and simply refresh as
desired.


Sub Macro6()
'
' Macro6 Macro
'

'
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.weather.com/weather/local/78734?lswe=78734&lwsa=WeatherLocalUndeclared&from= searchbox_localwx"""
_
, Destination:=Range("$A$1"))
.Name = _

"78734?lswe=78734&lwsa=WeatherLocalUndeclared&from =searchbox_localwx""_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Is it possible to have a cell/field that would check the current
weather
and
put the temperature in that cell?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Automatic weather

is there a way to get the average temp. for a sertain day the same day?

so like tuesday at 8am i want to get a temperature for like the afternoon or
the average for the day. Same if I enter the date at 6 pm I want the average
for this day?

How would you incorporate the link to your code?

Thank You

"Don Guillett" wrote:

Yesterday
http://www.weather.com/weather/pastw...nav_undeclared

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Great Thank You. It is working great.

One more thing.
This is great if you want the tempeture of right now, BUT what if you want
the average temperature for the day. How would you get that?


"Don Guillett" wrote:

Use this macro I just recorded to establish an external query to
weather.com. Then change the zip from 78734 and simply refresh as
desired.


Sub Macro6()
'
' Macro6 Macro
'

'
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.weather.com/weather/local/78734?lswe=78734&lwsa=WeatherLocalUndeclared&from= searchbox_localwx"""
_
, Destination:=Range("$A$1"))
.Name = _

"78734?lswe=78734&lwsa=WeatherLocalUndeclared&from =searchbox_localwx""_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Is it possible to have a cell/field that would check the current
weather
and
put the temperature in that cell?






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Automatic weather

If YOU find a web site (google for average temp) that does that you can
incorporate into the code. Contact me privately at my address below if you
desire custom work.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
is there a way to get the average temp. for a sertain day the same day?

so like tuesday at 8am i want to get a temperature for like the afternoon
or
the average for the day. Same if I enter the date at 6 pm I want the
average
for this day?

How would you incorporate the link to your code?

Thank You

"Don Guillett" wrote:

Yesterday
http://www.weather.com/weather/pastw...nav_undeclared

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Great Thank You. It is working great.

One more thing.
This is great if you want the tempeture of right now, BUT what if you
want
the average temperature for the day. How would you get that?


"Don Guillett" wrote:

Use this macro I just recorded to establish an external query to
weather.com. Then change the zip from 78734 and simply refresh as
desired.


Sub Macro6()
'
' Macro6 Macro
'

'
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.weather.com/weather/local/78734?lswe=78734&lwsa=WeatherLocalUndeclared&from= searchbox_localwx"""
_
, Destination:=Range("$A$1"))
.Name = _

"78734?lswe=78734&lwsa=WeatherLocalUndeclared&from =searchbox_localwx""_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Is it possible to have a cell/field that would check the current
weather
and
put the temperature in that cell?





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Automatic weather

Sent him one using google weather.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
If YOU find a web site (google for average temp) that does that you can
incorporate into the code. Contact me privately at my address below if you
desire custom work.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
is there a way to get the average temp. for a sertain day the same day?

so like tuesday at 8am i want to get a temperature for like the afternoon
or
the average for the day. Same if I enter the date at 6 pm I want the
average
for this day?

How would you incorporate the link to your code?

Thank You

"Don Guillett" wrote:

Yesterday
http://www.weather.com/weather/pastw...nav_undeclared

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Great Thank You. It is working great.

One more thing.
This is great if you want the tempeture of right now, BUT what if you
want
the average temperature for the day. How would you get that?


"Don Guillett" wrote:

Use this macro I just recorded to establish an external query to
weather.com. Then change the zip from 78734 and simply refresh as
desired.


Sub Macro6()
'
' Macro6 Macro
'

'
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.weather.com/weather/local/78734?lswe=78734&lwsa=WeatherLocalUndeclared&from= searchbox_localwx"""
_
, Destination:=Range("$A$1"))
.Name = _

"78734?lswe=78734&lwsa=WeatherLocalUndeclared&from =searchbox_localwx""_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Damian" wrote in message
...
Is it possible to have a cell/field that would check the current
weather
and
put the temperature in that cell?






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
automatic [email protected] uk Excel Discussion (Misc queries) 1 June 20th 09 07:19 PM
Importing Weather Info kpack Setting up and Configuration of Excel 1 November 8th 08 02:54 AM
Automatic update of spreadsheet & automatic update between workboo Losva Excel Worksheet Functions 6 September 12th 08 03:22 PM
Weather Chart David D Charts and Charting in Excel 3 December 5th 05 03:39 PM
Weather counting query Weather Consultancy Services Excel Discussion (Misc queries) 1 July 30th 05 10:35 PM


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