+ Reply to Thread
Results 1 to 4 of 4

Copy/paste macro help request

Hybrid View

NewKidontheBlock Copy/paste macro help request 08-12-2011, 08:55 AM
JBeaucaire Re: Copy/paste macro help... 08-12-2011, 10:59 AM
NewKidontheBlock Re: Copy/paste macro help... 08-12-2011, 12:43 PM
JBeaucaire Re: Copy/paste macro help... 08-12-2011, 05:03 PM
  1. #1
    Registered User
    Join Date
    08-11-2011
    Location
    High Point, NC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy/paste macro help request

    Hello All!

    I'm new to Excel advanced features (i.e. macros). I've searched Google all day and have not come up with a

    macro that accomplishes what I need in total.

    I need command button macro that will:
    Copy cells M14:Q14 on Sheet1
    Paste the value of the copied cells on the first empty row of column A on Sheet 2
    Paste the value of same copied cells (transposed) in the first empty cell of row 3 on Sheet3 Clear the values

    (but not the validation) of cells I13:I17 on Sheet 1

    Many thanks for your help!
    Deb

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy/paste macro help request

    Copy cells M14:Q14 on Sheet1
    Paste the value of the copied cells on the first empty row of column A on Sheet 2
    Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(,5).Value _
        = Sheets("Sheet1").Range("M14:Q14").Value

    Paste the value of same copied cells (transposed) in the first empty cell of row 3 on Sheet3
    Sheets("Sheet3").Cells(3, Columns.Count).End(xlToLeft).Offset(, 1).Resize(5).Value _
        = Application.Transpose(Sheets("Sheet1").Range("M14:Q14").Value)

    Clear the values
    Sheets("Sheet1").Range("M14:Q14").Value = ""
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-11-2011
    Location
    High Point, NC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Copy/paste macro help request

    Jerry,

    Thanks for the quick turnaround! I tried the code you posted....unfortunately, it only pasted the first cell of the (5) cell range on Sheet 2 (and nothing pasted to Sheet 3). What am I missing?

    Thanks! Deb

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy/paste macro help request

    Don't know, the code posts to sheet3 for me. I'd have to see your sheet with the code in it to troubleshoot. Should work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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