+ Reply to Thread
Results 1 to 4 of 4

Need to copy Data from Worksheet 1 to Worksheet 2 using VBA

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Scottsdale, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    15

    Need to copy Data from Worksheet 1 to Worksheet 2 using VBA

    I am missing some critical piece of info in my attempt to code this (what I thought would be) an easy task. On a sheet called "Blank Sheet" I have a command button. When that button is clicked, I need to copy the information in Range K2:O10 and paste the values and formatting into worksheet called "Timings Summary" at a location LRow. I made two attempts and neither worked. Can someone review the code below and assist me in finding the error of my ways here. NOTE: for this example I have included both Attempts in the same code. I realize that 1 or the other would be modified but both would not be required.

    Please Login or Register  to view this content.

    Thanks for your time.

  2. #2
    Registered User
    Join Date
    04-05-2013
    Location
    Scottsdale, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Need to copy Data from Worksheet 1 to Worksheet 2 using VBA

    The workbook I am using is here.Timings Data ModelTEST.xlsm

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need to copy Data from Worksheet 1 to Worksheet 2 using VBA

    I have moved the code from sheet to a module.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-05-2013
    Location
    Scottsdale, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Need to copy Data from Worksheet 1 to Worksheet 2 using VBA

    AB33 - Thanks for the assist. You solution corrected the problem and I appreciate you cleaning up my code a bit. I will take these pointers for future reference as well. Thanks again.

+ Reply to Thread

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