CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Posts
    596

    [RESOLVED] How Do I Paste From Cliboard To Excel?

    Good morning all.

    I want to copy data from a website and paste it into Excel. Can someone please help me with pasting into Excel?

    -Juan

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: How Do I Paste From Cliboard To Excel?

    Make use of the Clipboard object.

    It provides you with the GetData, GetText, GetObject and SetData, SetText and SetObject methods with which you can use to manipulate your data. If you're going to paste into an external program, you'll need the related APIs ( Such as FindWindow and FindWindowEx ) and use it while pasting

  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: How Do I Paste From Cliboard To Excel?

    You can also use the Microsoft.Office.Interop namespace to interact with Excel directly, which will give you a much greater control on how you can transfer the data. You will need to add a reference to Excel, so you will need to have that installed on the computer running your program.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  4. #4
    Join Date
    Dec 2009
    Posts
    596

    Re: How Do I Paste From Cliboard To Excel?

    Thanks everyone. You guys rock.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured