Results 1 to 10 of 10

Using The Next Empty Column

Threaded View

Disco3Stu Using The Next Empty Column 01-04-2011, 03:56 PM
Mordred Re: Using The Next Empty... 01-04-2011, 04:02 PM
Disco3Stu Re: Using The Next Empty... 01-07-2011, 04:44 AM
MarvinP Re: Using The Next Empty... 01-04-2011, 04:10 PM
Disco3Stu Re: Using The Next Empty... 01-04-2011, 04:25 PM
MarvinP Re: Using The Next Empty... 01-04-2011, 05:10 PM
Disco3Stu Re: Using The Next Empty... 01-04-2011, 07:54 PM
Disco3Stu Re: Using The Next Empty... 01-04-2011, 08:37 PM
ZLPROG Re: Using The Next Empty... 01-04-2011, 10:51 PM
MarvinP Re: Using The Next Empty... 01-04-2011, 11:02 PM
  1. #1
    Registered User
    Join Date
    01-04-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Using The Next Empty Column

    Hello

    I'm a complete novice when it comes to Macro's. I'm trying to copy a cell of data (F564)and a column of data (K564:K639) from one sheet and copy them to a cell and a column in a second sheet (currently C1 and C5-C80), but want to use the first empty column in the second sheet each time, not Column C. This would be updated daily, with the most recent data being in the right-most column.

    I've been playing with offsets etc but cannot get it to work. Any help would be gratefully recieved!

    My current code is:

    Sub LoadTimes()
        Sheets("Pos Report in A1").Select
        Range("F564").Select
        Selection.Copy
        Sheets("Times").Select
        Range("C1").Select
        ActiveSheet.Paste
        Sheets("Pos Report in A1").Select
        Range("K564:K639").Select
        Application.CutCopyMode = False
        Selection.Copy
        Sheets("Times").Select
        Range("C5").Select
        ActiveSheet.Paste
        Columns("D:E").Select
        Range("D2").Activate
        Application.CutCopyMode = False
        Selection.UnMerge
        Range("A1:B1").Select
    End Sub
    Many thanks,

    Stuart
    Last edited by Disco3Stu; 01-07-2011 at 04:46 AM.

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