Results 1 to 21 of 21

Modify Existing Mbr Code to Save to Ext.Workbook

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Modify Existing Mbr Code to Save to Ext.Workbook

    Morning All,

    The code attached was provided within this forum, but I think I borked it cause it's not quite doing what I'm needing. Intended theme, to add data cells to next available area of the DB skipping the header row. The row column search for finding next available area should be defined by column G, H or I of the "DB"

    1.) I need the active sheet - Sheets("Master (2)") - to copy only the data filled cells in the range of A:R to my - Sheets("DB") - in range G:X skipping the header row (Row 1)
    2.) Additionally, I need to copy from ("Master (2)") active cells in Column AA to ("DB") Column Y following the same 'find next available cell' philosophy.

    *Edit

    3.) Sorry, will also need columns G:Y of the "DB" to sort by
    A.) Property Case ; Values ; A to Z
    B.) Date ; Values ; Newest to Oldest.

    Thank you very much!

    Sub CopyToNewSheet()
    
        Dim copy_from, copy_to As Range
        Dim Lastrow as integer
    
        Lastrow = ActiveSheet.Range("B" & Rows.Count).End(xlUp).Row
        Set copy_from = ActiveSheet.Range("B2:G" & Lastrow)
        Set copy_to = Sheets("DB").Range("G" & Rows.Count).End(xlUp)
        copy_from.Copy Destination:=copy_to
        
    
    End Sub
    Last edited by Miskondukt; 03-01-2013 at 07:59 PM.

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