#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Webquery

I am attempting to get data from an internal webpage. When I do I get the
following message: "The page you have requested requires JavaScript to
function properly."

I am using Excel 2003 with SP3

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Webquery

Show the code please!! As an alternative, simply turn on the macro recorder,
and click as follows:
Data Import External Data New Web Query...then enter in the URL of
interest and navigate to the specific part of the site that is of interest.
I did just that, and received the following code:

Sub Macro1()

With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://finance.yahoo.com/q?s=IBM", Destination:=Range("A1"))
.Name = "q?s=IBM"
.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 = """table1"""
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub

Try it and see what happens...

Regards,
Ryan---

--
RyGuy


"Neale" wrote:

I am attempting to get data from an internal webpage. When I do I get the
following message: "The page you have requested requires JavaScript to
function properly."

I am using Excel 2003 with SP3

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Webquery

Post your url for comments

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Neale" wrote in message
...
I am attempting to get data from an internal webpage. When I do I get the
following message: "The page you have requested requires JavaScript to
function properly."

I am using Excel 2003 with SP3


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Webquery

Note this routine attempts to get data from an internal webserver that
auto-generates a webpage.:

Sub WEBQ()
'
' WEBQ Macro
' Macro recorded 8/25/2008 by Neale
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
With
ActiveSheet.QueryTables.Add(Connection:="URL;http://157.206.186.70", _
Destination:=Range("A1"))
.Name = "157.206.186.70"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Cells.Select
Application.CommandBars("Task Pane").Visible = False
End Sub

This generates: "Loading...
The page you have requested requires JavaScript to function properly."

"Don Guillett" wrote:

Post your url for comments

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Neale" wrote in message
...
I am attempting to get data from an internal webpage. When I do I get the
following message: "The page you have requested requires JavaScript to
function properly."

I am using Excel 2003 with SP3



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 Webquery Refresh Jambruins Excel Discussion (Misc queries) 1 November 16th 07 03:55 PM
Webquery [querytable] long url LightShow Excel Discussion (Misc queries) 5 May 21st 07 11:09 PM
webquery and solver macros icestationzbra Excel Discussion (Misc queries) 2 February 23rd 06 06:47 PM
Webquery fieldnaming... nippetee Links and Linking in Excel 0 January 26th 05 01:13 PM
Webquery Othello Excel Discussion (Misc queries) 0 December 1st 04 12:41 PM


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