Results 1 to 19 of 19

Trying to find the right code to copy a column from one worksheet and paste to another

Threaded View

  1. #11
    Registered User
    Join Date
    11-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Trying to find the right code to copy a column from one worksheet and paste to another

    Yeah, I mean. I've just copy pasted that code for another button for a different table beneath the first one and it works perfectly! It's just this first table that's being a pain...

    Sub ColHS()
    Dim lcol As Long
    With Worksheets("Trend Analysis")
        lcol = .Range("XFD33").End(xlToLeft).Column
        Worksheets("Health and Safety Pre Mob").Range("G4:G9").Copy .Cells(33, lcol + 1)
    End With
    End Sub
    The above works just like it should for this other table further down.

    But the same code doesn't seem to want to work for the other table..

    Sub CollateProcurement()
    Dim lcol As Long
    With Worksheets("Trend Analysis")
        lcol = .Range("XFD7").End(xlToLeft).Column
        Worksheets("Procurement Pre Mobilisation").Range("I4:I22").Copy .Cells(7, lcol + 1)
    End With
    End Sub
    I can't seem to figure out the issue!

    Thank you very much for your time with this by the way, I appreciate it
    Last edited by arlu1201; 11-15-2013 at 12:12 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  2. Code: Find, Copy, Paste not working
    By ufopilot3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-26-2012, 03:40 PM
  3. Help with find, copy, and paste code using offset
    By mundellj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2011, 08:16 PM
  4. code to find, copy and paste until find new, then repeat
    By siddharthariver in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2010, 04:02 PM
  5. Find Value and Copy/Paste Row from One Worksheet to Another
    By GravityInvert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2008, 02:56 PM

Tags for this Thread

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