Consulting

Results 1 to 3 of 3

Thread: Paste Special?

  1. #1

    Paste Special?

    I am copying a range of cells from one workbook, and pasting it into another. The cells are shaded grey, but I only want the values to pasted into the other workbook.

    I've tried to do this:


    [VBA]Workbooks(otherwb).Activate
    Cells.Find(country).Select
    Range("C" & ActiveCell.Row, "I" & ActiveCell.Row).Copy

    sht1.Activate
    Cells(x, colnum).Select
    ActiveSheet.Pastespecial xlValues
    Application.CutCopyMode = False
    [/VBA]

    But it deosn't work, can anyone help me?

    Thanks

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    Try this:
    [VBA]
    Workbooks(otherwb).Activate
    Cells.Find(country).Select
    Range("C" & ActiveCell.Row, "I" & ActiveCell.Row).Copy

    sht1.Activate
    Cells(x, colnum).Pastespecial xlPasteValues
    Application.CutCopyMode = False
    [/VBA]
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Works Thanks!

Posting Permissions

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