Consulting

Results 1 to 5 of 5

Thread: Paste from Webpage

  1. #1

    Paste from Webpage

    I need a macro that will paste 2 rows of 6 values, copied from a webpage, into cells A1 to F2 of my worksheet. I can do it manually, but when I try to put it into a macro it pastes the data but then gives me an error saying the paste method is not valid???
    Thanks for the help.

  2. #2
    if you show the code you have problem with, maybe someone can help to fix

  3. #3

    no code... just trying to record

    Quote Originally Posted by westconn1 View Post
    if you show the code you have problem with, maybe someone can help to fix

  4. #4
    then post the code from the macro recorder

  5. #5
    Here's the code generated from my attempt to record.... only one line generated. I tried on a Blank workbook and it worked.... then copied the macro to my workbook and it still worked.... a couple times... then gave me the error I mentioned previously but still pasted the data. The problem is, I want to add more code after the paste so don't want to have it halt with the error.


    Sub PasteFromLinks()
    '
    ' PasteFromLinks Macro
    '
    ' Keyboard Shortcut: Ctrl+q
    '



    ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
    False

    End Sub
    Last edited by robws8743; 06-27-2014 at 11:48 PM. Reason: More info

Posting Permissions

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