+ Reply to Thread
Results 1 to 9 of 9

Html to excel web browser

  1. #1
    Registered User
    Join Date
    08-13-2010
    Location
    rennes, france
    MS-Off Ver
    Excel 2003
    Posts
    4

    Html to excel web browser

    Hello from France,

    i need to paste HTML elements from webbrowser correctly.

    i need to keep layout of data by respecting the line and columns.

    i ve got only one line which contains all data in the cell wanted but i need one line with 5 columns. (not obvious to explain)

    It is necessary to understand that via InternetExplorer, i dn't have not this problem thanks to the special paste.

    here is code:
    Please Login or Register  to view this content.
    Thanks for your help!
    Last edited by royUK; 08-16-2010 at 10:27 AM.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Html to excel webbrowser

    Hi, welcome to the forum, please wrap your code in code tags. (edit -> go advanced -> select the code and click the button with a # on it)
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Html to excel webbrowser

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    08-13-2010
    Location
    rennes, france
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Html to excel webbrowser

    Quote Originally Posted by royUK View Post
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    opps didn't notice this rule ^^

    I 'ts very difficult to explain my problem but not the code
    Please Login or Register  to view this content.
    In exemple i need to copy paste 1-4 Row from this site http://www.boursorama.com/

    with correct format:

    eg:

    PHP Code: 
    [HTML]SOCIETE GENERALE     [Données temps réel]     42.585     -1.81%
                   
    A1           B1                         C1          D1 
    It s ok with special paste under Excel 2007 but from webbrowser with a command button, it's impossible to retrieve correct format :s

    i 've found this: http://www.excelforum.com/excel-prog...-in-excel.html

    but no way to succeful this code

    Merci !!!!

    thanks

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Html to excel webbrowser

    Try this:
    Please Login or Register  to view this content.
    (doesn't require reference to form object library)

  6. #6
    Registered User
    Join Date
    08-13-2010
    Location
    rennes, france
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Html to excel webbrowser

    Hello cheeky charlie,

    it gives me an error

    "Paste Special method of range class failed"

    in excel 2007, i ve a lot of problem with this paste method
    Last edited by caskad; 08-16-2010 at 09:41 AM.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Html to excel webbrowser

    I future edit the original post, don't just enter a new one.

  8. #8
    Registered User
    Join Date
    08-13-2010
    Location
    rennes, france
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Html to excel webbrowser

    Quote Originally Posted by Cheeky Charlie View Post
    Try this:
    Please Login or Register  to view this content.
    (doesn't require reference to form object library)
    it works:
    Please Login or Register  to view this content.
    thx !

  9. #9
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Html to excel web browser

    Sorry, I didn't read your code properly, (but obviously you worked it out).

    To replicate your exact logic from before:
    Please Login or Register  to view this content.
    (i.e. paste into column T after last entry in column A)

    If your table always has entries in column T if there are entries in column A then this will make no difference - if sometimes entries are missing in column T and column A is always complete this way is slightly more robust.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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