+ Reply to Thread
Results 1 to 5 of 5

macro to copy and the paste transpose to another sheet

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    macro to copy and the paste transpose to another sheet

    hi guys

    Im looking to copy a range of cells (aa1 to aa20 ) from sheet 'Mid v Bla' ( the sheet tab name changes dependant on whats selected in cells
    In this case the game is Middlesbrough v Blackburn but could easily be Mil v Hul ie Millwall v Hull
    and then paste by transpose into the next row available starying in column ab of sheet 'Championship'

    is this at all possible please guys?
    Last edited by swfarm; 12-12-2018 at 01:56 PM.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: macro to copy and the paste transpose to another sheet

    See if this is what you want.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: macro to copy and the paste transpose to another sheet

    hi JLG will this still work if the sheet name changes ?

  4. #4
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: macro to copy and the paste transpose to another sheet

    compile error syntax error

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: macro to copy and the paste transpose to another sheet

    Quote Originally Posted by swfarm View Post
    compile error syntax error
    Forgot the comma after xlPasteValues.
    Please Login or Register  to view this content.
    hi JLG will this still work if the sheet name changes ?
    Which sheet? Based on this
    the sheet tab name changes dependant on whats selected in cells
    you are selecting the cell with the sheet name for the source sheet, so the 'Sheets(Selection.Value)' should cover that. You would have to manually change the other sheet reference.

+ 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: 10
    Last Post: 10-02-2017, 09:37 AM
  2. [SOLVED] Macro for copy and paste transpose
    By kmahesh in forum Excel General
    Replies: 5
    Last Post: 09-20-2014, 12:13 PM
  3. Need help with macro for copy/paste as transpose
    By vkartikv in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-15-2014, 05:54 PM
  4. [SOLVED] Macro help with copy/paste and transpose across 3 columns into a 4th - same sheet
    By pharms in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2013, 03:51 PM
  5. [SOLVED] Macro Copy, Paste Transpose to Master Sheet
    By dingo7448 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2013, 04:15 PM
  6. Macro for copy & paste (transpose) from one workbook to another
    By Drmirafbi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-22-2010, 12:05 AM
  7. Macro for copy paste values transpose
    By straggleyway in forum Excel General
    Replies: 0
    Last Post: 03-11-2009, 07:32 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