Results 1 to 4 of 4

Macro copy paste issues

Threaded View

exceldrivesmenutts Macro copy paste issues 05-27-2010, 09:35 PM
royUK Re: Macro copy paste issues 05-28-2010, 01:35 AM
ajaykgarg Re: Macro copy paste issues 05-28-2010, 07:49 AM
royUK Re: Macro copy paste issues 05-28-2010, 01:45 AM
  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    melbourne australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Exclamation Macro copy paste issues

    Hey,

    I have been trying for a few days to get this to work and you will be able to tell by my code that I am a complete beginer.

    I am trying to copy values from specific cells in another workbook and paste this values into a table.

    The other workbook is a form

    I can get it to paste but I need it to move to the next row if I run the macro again at the moment it just pastes over the top of the data.

    I am trying to create a running record.

    Heres my dodgy basic code.

    Any help would be great
    Sub DATaGATHER()
    '
    ' DATaGATHER Macro
    ' Macro recorded 27/05/2010 by P675120
    '
    
    '
        
        Range("F6").Select
        Selection.Copy
        Windows("reporting.xls").Activate
        Range("B4").Select
        Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Range("C4").Select
        Windows("Memo Generation Templatetester.xls").Activate
        Range("F28").Select
        Application.CutCopyMode = False
        Selection.Copy
        Windows("reporting.xls").Activate
        Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Windows("Memo Generation Templatetester.xls").Activate
        ActiveWindow.SmallScroll Down:=18
        Windows("reporting.xls").Activate
        Windows("Memo Generation Templatetester.xls").Activate
        Range("F45").Select
        Application.CutCopyMode = False
        Selection.Copy
        Windows("reporting.xls").Activate
        Range("D4").Select
        Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Windows("Memo Generation Templatetester.xls").Activate
        Range("H45").Select
        Application.CutCopyMode = False
        Selection.Copy
        Windows("reporting.xls").Activate
        Range("E4").Select
        Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Windows("Memo Generation Templatetester.xls").Activate
        Range("F50").Select
        Application.CutCopyMode = False
        Selection.Copy
        Windows("reporting.xls").Activate
        Range("F4").Select
        Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Windows("Memo Generation Templatetester.xls").Activate
        Range("F30").Select
        Application.CutCopyMode = False
        Selection.Copy
        Windows("reporting.xls").Activate
        Range("G4").Select
        Selection.PasteSpecial paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
    
    
    End Sub
    Last edited by rylo; 05-28-2010 at 12:40 AM. Reason: added code tags

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