+ Reply to Thread
Results 1 to 2 of 2

Select Range to paste

  1. #1
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    106

    Select Range to paste

    I have a baseball game I've created using Excel. I would like a MACRO that will copy several rows/columns of stats from one sheet to another. It would paste the stats in the cells on the 2nd sheet in the range reference by cell A1 of the 2nd.

    Each team will begin with a different row number.

    For example, I have (25, 3) in A1 and C25 is where I want the "paste" to begin. I'm having trouble getting it to work.

    The first range is from the "PLAY GAME" sheet.

    Here's what I have:


    Sub MoveVHitStreak()
    '
    ' MoveVHitStreak Macro
    '
    Dim First As String

    '
    Range("BF71:BN89").Select
    Selection.Copy
    Sheets("Hitting Streaks").Select
    First = cells(1, 1)
    Range(First).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Calculate
    End Sub


    Thanks for any help you can give.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Select Range to paste

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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. [SOLVED] Inputboxes to select range to copy and range to paste from different workbooks
    By graphicgoose in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-29-2014, 05:51 PM
  2. Need dynamic range select and copy Paste
    By rags_rags in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 03:49 PM
  3. find and select a cell to paste a range
    By gjolson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-30-2012, 07:56 PM
  4. Select Range, Copy, Paste, FAIL! :p
    By prefix in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2009, 03:46 AM
  5. Select Range Paste Special
    By additude in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-30-2007, 01:09 PM
  6. Variable to select range to copy and paste to
    By cecil23 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-30-2007, 02:35 AM
  7. Select a varying range of text and paste into a cell
    By JesterPrime in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2005, 07:05 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