+ Reply to Thread
Results 1 to 6 of 6

Copy & Paste Macro

  1. #1
    Registered User
    Join Date
    07-11-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2016
    Posts
    4

    Copy & Paste Macro

    Hello, this is my first post.

    I am trying to create a Macro to copy data from Sheet 1 and paste it into cell A1 in Sheet 2.

    For some reason when I run the macro, it does not paste anything to Sheet 2.

    Can you please help me? Thanks!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Copy & Paste Macro

    Supply the code you are having problems with...

  3. #3
    Registered User
    Join Date
    07-11-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Copy & Paste Macro

    Sub HelpMe()
    '
    ' HelpMe Macro
    '

    '
    Rows("1:28").Select
    Selection.Copy
    Sheets("Sheet2").Select
    Range("A1").Select
    ActiveSheet.Paste
    Range("C2").Select
    Application.CutCopyMode = False
    ActiveCell.FormulaR1C1 = "Event "
    Columns("E:E").Select
    Range("E2").Activate
    Selection.Delete Shift:=xlToLeft
    Columns("G:G").Select
    Range("G2").Activate
    Selection.Delete Shift:=xlToLeft
    Cells.Select
    Cells.EntireColumn.AutoFit
    End Sub

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Copy & Paste Macro

    Are you running the code from a different sheet, or from sheet2?
    If you need the code to copy from a different sheet other than sheet2, you would have to show that in the code.

  5. #5
    Registered User
    Join Date
    07-11-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Copy & Paste Macro

    I on Sheet 1 when running the macro

  6. #6
    Registered User
    Join Date
    07-11-2018
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Copy & Paste Macro

    When I am on Sheet 1 and hit Run Macro, it acts like it is running but just paste blank data cells on Sheet 2. The data from Sheet 1 is not pasted over.

+ 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. Replies: 0
    Last Post: 01-13-2016, 08:50 PM
  2. Copy paste - cute paste macro almost working
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 12:33 PM
  3. Copy & paste in macro doesn't paste all cells
    By pltrapper in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2013, 09:22 AM
  4. [SOLVED] Simple copy and paste macro- Paste special help needed.
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 07:02 AM
  5. [SOLVED] Macro to Find, copy, paste, find, copy, paste, find, copy, paste, u get the picture....
    By westsoldman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2012, 01:12 AM
  6. 2 Macro's: only vertical copy/paste action and copy-paste 14 columns to the right.
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2010, 10:34 AM
  7. Copy and Paste macro needs to paste to a changing cell reference
    By loulou in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 07:06 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