+ Reply to Thread
Results 1 to 2 of 2

VBA with copy & paste based on If want half of list in 1 row, other half 10 rows over

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    VBA with copy & paste based on If want half of list in 1 row, other half 10 rows over

    How would you change the following info to take the first 15 cells and paste to a different sheet starting at B15, then the next 15 cells starting at m15. Here is what I have and it works good, just to many cells for the one sheet.

    Sub Macro2()
    Dim LastRow As Long
    With Sheets("Data")
    LastRow = .UsedRange.Rows.Count
    With .Range("I362:J" & LastRow) 'Note: autofilter considers the top row (362) is a header row
    .AutoFilter Field:=1, Criteria1:="yes" 'Filter for yes in column I
    .Offset(0, 1).Resize(, 1).Copy Destination:=Sheets("working").Range("B15")
    End With
    .AutoFilterMode = False
    End With
    End Sub
    As always thank you.

  2. #2
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: VBA with copy & paste based on If want half of list in 1 row, other half 10 rows over

    Can someone please help me with this question? I am pulling my hair out trying to figure out how to post into different columns. Please help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Overtime and payment at half hour intervals with a lower payment for the first half hour
    By brettamine in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2014, 07:51 AM
  2. Replies: 1
    Last Post: 05-03-2013, 04:39 AM
  3. vba copy paste only half working
    By Mummraah in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-31-2012, 07:29 AM
  4. Replies: 4
    Last Post: 02-11-2011, 08:02 AM
  5. Replies: 2
    Last Post: 08-15-2006, 03:20 PM

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