+ Reply to Thread
Results 1 to 3 of 3

How to replace table column tags

  1. #1
    Registered User
    Join Date
    09-27-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    97

    How to replace table column tags

    Hello,

    Is there any way we can pull only one table column from website table?

    The table column tags I want to pull from the site goes something like this:

    <td align=right><span alt="2 of 5 stars" title="2 of 5 stars" class="NoWrap"><img src="/i/star-on.png" height="16" width="17" /><img src="/i/star-on.png" height="16" width="17" /><img src="/i/star-off.png" height="16" width="17" /><img src="/i/star-off.png" height="16" width="17" /><img src="/i/star-off.png" height="16" width="17" /></span></td>

    Is there any way we can replace this string of tags with this:

    <td align=right>2 of 5 stars</td>

    ------

    or another way, can we manipulate the same thing in clipboard? When I copy the table content from website with the help of getElementById, is there any way we can replace those tags and paste in the column?


    If anyone can help me out with this?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Re: How to replace table column tags


    Hi,

    easy beginner way is to use worksheet assistant of New query on the web (QueryTable object in VBA) …

    If you have enough skills in HTML and VBA, see this thread with both ways :
    one reading cells from table and other using clipboard !

    Evidence that it is faster to perform a search in the forum than waiting for a possible response !

  3. #3
    Registered User
    Join Date
    09-27-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    97

    Re: How to replace table column tags

    Thanks Marc, Leith helped me with the code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  2. Search and replace/insert HTML code into Master File using tags
    By Dave855 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-14-2014, 09:35 PM
  3. Tags Missing need to replace using VBA
    By denflow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2013, 01:41 PM
  4. Sort Tags into Column A and hyperlinks into Column B, Repeat Tags when needed
    By Pavel001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2011, 09:05 PM
  5. Find/Replace Macro Using Replace Table
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2011, 11:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1