Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Joe Francisco
 
Posts: n/a
Default Can Web Query retrieve a single HTML table cell?

Is there a way to use Web Query to get just one data point (contents of one
table cell) from an HTML page (instead of the whole table)? Of course you can
get the table and then create a reference to the desired data, but is there
any way to get that one data point directly via the Query (e.g., some obscure
setting you can manually insert into the .iqy file)?

  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Can Web Query retrieve a single HTML table cell?

I don't think so. What I have found that works for me is recording a
macro that deletes all the information you dont want leaving the cell
that you do. You can then fire off the macro using a button etc. I am
new to this myself so I cannot offer you all of your options, but it
may be a start...

  #3   Report Post  
Posted to microsoft.public.excel.misc
Joe Francisco
 
Posts: n/a
Default Can Web Query retrieve a single HTML table cell?

Thanks for the tip! I'll try it, at least as a temporary solution. The
problem is that running the Web Query replaces the data in adjacent cells, as
I'm sure you know. I'm sure there's a way around this--e.g. by having the
macro insert surrounding rows and columns and then delete them, leaving only
the desired data point--but I sure would like to avoid that mess.

If anyone knows a better way (besides similarly complicated workarounds like
using a helper sheet), I'd really like to know about it.

" wrote:

I don't think so. What I have found that works for me is recording a
macro that deletes all the information you dont want leaving the cell
that you do. You can then fire off the macro using a button etc. I am
new to this myself so I cannot offer you all of your options, but it
may be a start...


  #4   Report Post  
Posted to microsoft.public.excel.misc
Joe Francisco
 
Posts: n/a
Default Can Web Query retrieve a single HTML table cell?

Correction:

I see now that refreshing the query doesn't overwrite adjacent data...but it
still recreates the new cells for the entire table, which you then have to
delete. This means another macro for refreshing the cell, and yet another one
to run that one repeatedly if you want to update an entire column of data.

I can see that it would work, but I think a helper sheet would be less
complicated. No need for any macros, and to refresh all the data, you can
just hit the "Refresh All" toolbar button.


" wrote:

I don't think so. What I have found that works for me is recording a
macro that deletes all the information you dont want leaving the cell
that you do. You can then fire off the macro using a button etc. I am
new to this myself so I cannot offer you all of your options, but it
may be a start...


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
VLOOKUP CONDITION TO RETURN BLANK CELL WHERE LOOKUP VALUE IS NOT IN TABLE ARRAY Scott Lolmaugh Excel Worksheet Functions 3 March 9th 06 11:05 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Formula Help Robert Excel Worksheet Functions 15 January 3rd 06 02:17 AM
pivot table sort entries that don't yet appear in table rachael Excel Discussion (Misc queries) 11 September 19th 05 11:29 PM
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM


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