Results 1 to 5 of 5

Thread: Copy to next blank column - almost there

  1. #1
    Board Regular
    Join Date
    Sep 2018
    Posts
    100
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Copy to next blank column - almost there

    Hi All,

    Sub DatesRaw()
    Sheets("DataRaw").Select
    Application.Goto Reference:="R2C1:R10000C4,R2C8:R10000C8"
    Selection.Copy

    Sheets("DatesRaw").Range("L3").End(xlToLeft).Offset(0, 1).PasteSpecial xlPasteValues

    End Sub
    I want to post to the first blank cell in Row 'L' after L3, but it is pasting to B3. Any correction pls?

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    29,068
    Post Thanks / Like
    Mentioned
    483 Post(s)
    Tagged
    48 Thread(s)

    Default Re: Copy to next blank column - almost there

    Do you mean the first blank row in COLUMN L? Or the first blank column in ROW 3?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    MrExcel MVP
    Join Date
    May 2009
    Posts
    16,590
    Post Thanks / Like
    Mentioned
    39 Post(s)
    Tagged
    9 Thread(s)

    Default Re: Copy to next blank column - almost there

    Change the paste line to this:
    Code:
    Sheets("DatesRaw").Cells(3,Columns.Count).End(xlToLeft).Offset(0, 1).PasteSpecial xlPasteValues
    Joe

    When I was a young man I knew everything. Now that I'm older, I realize I know very little, and what I do know, I tend to forget!

  4. #4
    Board Regular
    Join Date
    Sep 2018
    Posts
    100
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Copy to next blank column - almost there

    Hi @Fluff, apologies I mean first blank column in ROW 3 after L3
    @JoeMo, thank you.

  5. #5
    MrExcel MVP
    Join Date
    May 2009
    Posts
    16,590
    Post Thanks / Like
    Mentioned
    39 Post(s)
    Tagged
    9 Thread(s)

    Default Re: Copy to next blank column - almost there

    Quote Originally Posted by horizonflame View Post
    Hi @Fluff, apologies I mean first blank column in ROW 3 after L3
    @JoeMo, thank you.
    You are welcome - thanks for the reply.
    Joe

    When I was a young man I knew everything. Now that I'm older, I realize I know very little, and what I do know, I tend to forget!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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