Results 1 to 7 of 7

Transfer data from one worksheet to another, then moving over three columns.

Threaded View

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    ON, Canada
    MS-Off Ver
    2007
    Posts
    24

    Transfer data from one worksheet to another, then moving over three columns.

    Hi there,

    I would like to transfer data from one spreadsheet to another, by clicking a button (this part is working). However, the next time the user will enter the details, will be a new month. Ideally, the information will move over three columns and paste again:

    Private Sub CommandButton1_Click()
    With Sheet2.Cells(Rows.Count, 2).End(x1Up)

    .Offset(1, 0).Value = ActiveSheet.Range("b23").Value
    .Offset(1, 1).Value = ActiveSheet.Range("h23").Value
    .Offset(1, 2).Value = ActiveSheet.Range("b13").Value
    .Offset(2, 0).Value = ActiveSheet.Range("c23").Value
    .Offset(2, 1).Value = ActiveSheet.Range("i23").Value
    .Offset(2, 2).Value = ActiveSheet.Range("c13").Value
    .Offset(3, 0).Value = ActiveSheet.Range("d23").Value
    .Offset(3, 1).Value = ActiveSheet.Range("j23").Value
    .Offset(3, 2).Value = ActiveSheet.Range("d13").Value
    .Offset(4, 0).Value = ActiveSheet.Range("e23").Value
    .Offset(4, 1).Value = ActiveSheet.Range("k23").Value
    .Offset(4, 2).Value = ActiveSheet.Range("e13").Value

    End With

    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-12-2017, 01:02 PM
  2. [SOLVED] Transfer data from certain columns in the last row of data to separate worksheet
    By infoanalyzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-06-2015, 03:38 PM
  3. Replies: 5
    Last Post: 09-30-2014, 07:00 PM
  4. [SOLVED] Transfer Userform data on 1 worksheet to different worksheet (empty row = wrong sheet)
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2014, 10:08 AM
  5. Need Help Creating A Macros To Transfer Data From Worksheet to Worksheet
    By rodtay5283 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2014, 02:11 AM
  6. Moving data from worksheet to columns
    By nobleprince in forum Excel General
    Replies: 4
    Last Post: 02-03-2012, 07:26 PM
  7. Macro transfer when moving worksheet.
    By JesseFB in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-07-2005, 03:15 AM

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