Results 1 to 9 of 9

Copy and paste data

Threaded View

thedeadzeds Copy and paste data 04-24-2014, 08:04 AM
JOHN H. DAVIS Re: Copy and paste data 04-24-2014, 08:08 AM
thedeadzeds Re: Copy and paste data 04-24-2014, 08:11 AM
millz Re: Copy and paste data 04-24-2014, 08:14 AM
thedeadzeds Re: Copy and paste data 04-24-2014, 08:35 AM
millz Re: Copy and paste data 04-24-2014, 08:47 AM
thedeadzeds Re: Copy and paste data 04-24-2014, 08:58 AM
millz Re: Copy and paste data 04-24-2014, 09:08 AM
thedeadzeds Re: Copy and paste data 04-25-2014, 05:39 AM
  1. #1
    Registered User
    Join Date
    10-25-2011
    Location
    wales
    MS-Off Ver
    Excel 2003
    Posts
    34

    Copy and paste data

    Hi All,

    This code basically copies data from one worksheet to another worksheet based on the date and works great. However, I have been asked to changed the format of the spreadhsete and the code needs to be changed. The code is in ‘This workbook’.

    The code takes the data from the summary tab and copies it to the archive tab. I now need it to take it from the summary tab and copy it to the archive 2 tab.

    Hope this makes sense, I have attached a copy of the spreadsheet.

    Thanks


       Sub Tracking()
    '
    ' tracking Macro
    Dim i As Integer
        
        i = 1
        Do Until Sheet2.Range("B" & i).Text = Format(Sheet1.Range("D3").Text, "dddd dd mmmm yyyy")
            i = i + 1
        Loop
     
        'Volumes in
        Sheet2.Range("c" & i).Value = (Sheet1.Range("D7").Value)
        'Volumes out
        Sheet2.Range("d" & i).Value = (Sheet1.Range("D8").Value)
        'Chals in
        Sheet2.Range("e" & i).Value = (Sheet1.Range("D9").Value)
        'Chals out
        Sheet2.Range("F" & i).Value = (Sheet1.Range("D10").Value)
        'BAU in
        Sheet2.Range("g" & i).Value = (Sheet1.Range("D11").Value)
        'Bau out
        Sheet2.Range("h" & i).Value = (Sheet1.Range("D12").Value)
        'Bau Left
        Sheet2.Range("i" & i).Value = (Sheet1.Range("D13").Value)
        
        MsgBox "The data has been copied over - please check!"
        
        Sheets("Archive").Select
        Range("A1").Select
        
    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. copy formula and paste for new data added and autofill.....and paste special values
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2014, 07:40 AM
  2. Enter data, copy formulas, copy values, paste data, delete data
    By alf40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2013, 07:23 PM
  3. Replies: 1
    Last Post: 01-16-2013, 05:36 AM
  4. Replies: 1
    Last Post: 10-01-2012, 11:11 PM
  5. Replies: 2
    Last Post: 02-22-2011, 02:07 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