+ Reply to Thread
Results 1 to 9 of 9

Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of Copy

  1. #1
    Bob
    Guest

    Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of Copy

    Ron,
    Sorry to bother you, but I need to change the following line in the macro
    you sent me:

    ..Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    + 1, "A")

    from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    you kindly tell me how to change it? Thanks for your help.
    Regards, Bob


  2. #2
    Dave Peterson
    Guest

    Re: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of Copy

    Maybe ...

    ..Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy

    DestSh.Cells(Last + 1, "A").pastespecial paste:=xlpastevalues

    Two lines--no continuation characters.

    Bob wrote:
    >
    > Ron,
    > Sorry to bother you, but I need to change the following line in the macro
    > you sent me:
    >
    > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > + 1, "A")
    >
    > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > you kindly tell me how to change it? Thanks for your help.
    > Regards, Bob


    --

    Dave Peterson

  3. #3
    Tom Ogilvy
    Guest

    RE: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of Copy

    ..Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy

    DestSh.Cells(Last + 1, "A").Pastespecial xlValues

    would be my thought.

    --
    Regards,
    Tom Ogilvy


    "Bob" wrote:

    > Ron,
    > Sorry to bother you, but I need to change the following line in the macro
    > you sent me:
    >
    > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > + 1, "A")
    >
    > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > you kindly tell me how to change it? Thanks for your help.
    > Regards, Bob
    >


  4. #4
    Bob
    Guest

    RE: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of C

    Tom,
    I tried that, but got an error message. Thanks all the same.
    Bob


    "Tom Ogilvy" wrote:

    > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy
    >
    > DestSh.Cells(Last + 1, "A").Pastespecial xlValues
    >
    > would be my thought.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Bob" wrote:
    >
    > > Ron,
    > > Sorry to bother you, but I need to change the following line in the macro
    > > you sent me:
    > >
    > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > > + 1, "A")
    > >
    > > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > > you kindly tell me how to change it? Thanks for your help.
    > > Regards, Bob
    > >


  5. #5
    Bob
    Guest

    Re: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of C

    Dave,
    That did the trick! Thanks a million!!!
    Regards, Bob


    "Dave Peterson" wrote:

    > Maybe ...
    >
    > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy
    >
    > DestSh.Cells(Last + 1, "A").pastespecial paste:=xlpastevalues
    >
    > Two lines--no continuation characters.
    >
    > Bob wrote:
    > >
    > > Ron,
    > > Sorry to bother you, but I need to change the following line in the macro
    > > you sent me:
    > >
    > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > > + 1, "A")
    > >
    > > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > > you kindly tell me how to change it? Thanks for your help.
    > > Regards, Bob

    >
    > --
    >
    > Dave Peterson
    >


  6. #6
    Ron de Bruin
    Guest

    Re: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of Copy

    Use this Bob

    With sh.Range("A8").CurrentRegion

    .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy

    With DestSh.Cells(Last + 1, "A")
    .PasteSpecial xlPasteValues, , False, False
    Application.CutCopyMode = False
    End With

    End With


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Bob" <[email protected]> wrote in message news:[email protected]...
    > Ron,
    > Sorry to bother you, but I need to change the following line in the macro
    > you sent me:
    >
    > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > + 1, "A")
    >
    > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > you kindly tell me how to change it? Thanks for your help.
    > Regards, Bob
    >




  7. #7
    Bob
    Guest

    Re: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of C

    Ron,
    Thanks!!! You are a lifesaver!
    Regards, Bob


    "Ron de Bruin" wrote:

    > Use this Bob
    >
    > With sh.Range("A8").CurrentRegion
    >
    > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy
    >
    > With DestSh.Cells(Last + 1, "A")
    > .PasteSpecial xlPasteValues, , False, False
    > Application.CutCopyMode = False
    > End With
    >
    > End With
    >
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    >
    > "Bob" <[email protected]> wrote in message news:[email protected]...
    > > Ron,
    > > Sorry to bother you, but I need to change the following line in the macro
    > > you sent me:
    > >
    > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > > + 1, "A")
    > >
    > > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > > you kindly tell me how to change it? Thanks for your help.
    > > Regards, Bob
    > >

    >
    >
    >


  8. #8
    Dave Peterson
    Guest

    Re: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of C

    You have your solution, but are you sure Tom's suggestion didn't work.

    It looks very close to the others.

    Bob wrote:
    >
    > Tom,
    > I tried that, but got an error message. Thanks all the same.
    > Bob
    >
    > "Tom Ogilvy" wrote:
    >
    > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy
    > >
    > > DestSh.Cells(Last + 1, "A").Pastespecial xlValues
    > >
    > > would be my thought.
    > >
    > > --
    > > Regards,
    > > Tom Ogilvy
    > >
    > >
    > > "Bob" wrote:
    > >
    > > > Ron,
    > > > Sorry to bother you, but I need to change the following line in the macro
    > > > you sent me:
    > > >
    > > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > > > + 1, "A")
    > > >
    > > > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > > > you kindly tell me how to change it? Thanks for your help.
    > > > Regards, Bob
    > > >


    --

    Dave Peterson

  9. #9
    Tom Ogilvy
    Guest

    RE: Ron de Bruin - Using PasteSpecial (xlPasteValues) instead of C

    Must be you Bob. Worked fine for me. And you said essentially identical
    code by Dave works.

    --
    Regards,
    Tom Ogilvy


    "Bob" wrote:

    > Tom,
    > I tried that, but got an error message. Thanks all the same.
    > Bob
    >
    >
    > "Tom Ogilvy" wrote:
    >
    > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy
    > >
    > > DestSh.Cells(Last + 1, "A").Pastespecial xlValues
    > >
    > > would be my thought.
    > >
    > > --
    > > Regards,
    > > Tom Ogilvy
    > >
    > >
    > > "Bob" wrote:
    > >
    > > > Ron,
    > > > Sorry to bother you, but I need to change the following line in the macro
    > > > you sent me:
    > > >
    > > > .Offset(1, 0).Resize(.Rows.Count - 1, .Columns.Count).Copy DestSh.Cells(Last
    > > > + 1, "A")
    > > >
    > > > from a Copy operation to a PasteSpecial (xlPasteValues) operation. Could
    > > > you kindly tell me how to change it? Thanks for your help.
    > > > Regards, Bob
    > > >


+ 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