+ Reply to Thread
Results 1 to 5 of 5

Need help writing a Copy and Paste Macro

  1. #1
    Registered User
    Join Date
    12-04-2014
    Location
    Madison, MS
    MS-Off Ver
    2010
    Posts
    3

    Need help writing a Copy and Paste Macro

    Equipment Deficiencies 2015.xlsmOk so I'm relatively new to VBA and I have a question on how to configure a macro for a certain condition.

    I would like to have an active x button that once selected would paste data from one sheet of a workbook to another. The condition would be that if a specific cell is blank than the information on the adjoining 3 cells would be copied over to another sheet.

    In this workbook I would need a button on tab "Jan" to copy the data from tab "Jan" copied to "Feb", then a button on "Feb" to copy to "Mar" and so on. So on sheet "Jan" cell F5 is blank then the contents of C5:E5 need to be copied to the first available cells under priority 1 on sheet "Feb". Same goes for anything under priority 2, 3, 4, 8.

    Any help on this would be greatly appreciated. I tried recording the Macro but I keep getting multiple errors.
    Last edited by psabo315; 12-04-2014 at 11:36 AM. Reason: Add additional information

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    re: Need help writing a Copy and Paste Macro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum:

    Because you are new to the forum, I have changed your title for you. Please take the time to read the forum rules and comply with them in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-04-2014
    Location
    Madison, MS
    MS-Off Ver
    2010
    Posts
    3

    re: Need help writing a Copy and Paste Macro

    Understood, Thanks for the look and for changing it for me.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    re: Need help writing a Copy and Paste Macro

    Try this code. Because you have not provided a worksheet, this is untested.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-04-2014
    Location
    Madison, MS
    MS-Off Ver
    2010
    Posts
    3

    Re: Need help writing a Copy and Paste Macro

    Thanks I just edited my post to attach the worksheet

+ 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. Writing VBA to copy & paste data into a CSV file
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 09-18-2012, 04:19 AM
  2. writing macros for copy and paste in another workshee with filters..
    By shagee in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-17-2012, 02:17 PM
  3. Help writing macro to copy and paste data
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2010, 06:07 PM
  4. Help writing macro to copy and paste data to a new cell
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-03-2010, 06:56 PM
  5. Writing a macro (copy&paste macro)
    By skatmandu2002 in forum Excel General
    Replies: 3
    Last Post: 02-23-2010, 06:26 PM

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