+ Reply to Thread
Results 1 to 9 of 9

Issues transposing a range

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2013, 2016
    Posts
    25

    Issues transposing a range

    Hello all, I keep getting an error when trying to copy a range from one sheet and using pastespecial to transpose to another sheet. This is what I have:

    Please Login or Register  to view this content.
    This is the exact code I'm using for another function, except that I'm not transposing, I'm simply pasting. The error I'm getting is "Expected Funcion or Variable" so I figure I must be doing something fundamentally wrong here. Any insight would be appreciated.
    Last edited by FZappa; 06-19-2019 at 11:25 AM.

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

    Re: Issues transposing a range

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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-27-2018
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2013, 2016
    Posts
    25

    Re: Issues transposing a range

    Hi, thanks for the reply. It's really quite simple and I've included a sample workbook to show basically what I want to do.
    Attached Files Attached Files

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

    Re: Issues transposing a range

    I would do this using Power Query which is part of your Excel 2013. Here is the Mcode. No VBA required. One simple step after importing to PQ. See my signature for info on PQ

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-27-2018
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2013, 2016
    Posts
    25

    Re: Issues transposing a range

    Thanks for the reply. Part of the issue is that I want this to be part of a larger macro that other people are going to end up using (I've also never heard of Power Query so I wouldn't know how to adapt it to the larger project). If it was just me that needed to transpose it I'd probably be happy using that but in the end I need to have a big button that does everything and hopefully doesn't require me to teach people any features of excel for it to work.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Issues transposing a range

    Simply
    Please Login or Register  to view this content.

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

    Re: Issues transposing a range

    Suggest that you look at the links in my signature to learn about Power Query and the advantages it offers to Excel users. It is the new way of data manipulation in Spreadsheets. I understand your need for VBA in this situation, but PQ is very powerful.

  8. #8
    Registered User
    Join Date
    12-27-2018
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2013, 2016
    Posts
    25

    Re: Issues transposing a range

    Hey, I tried your method and it certainly worked, and I managed to make it work for the larger project I'm working with. However, is there a reason why it doesn't work with just "paste"? For example:

    Please Login or Register  to view this content.
    Just interesting, it gives me a 438 error when I try it.

    And thanks for the advice, alanisdman, I'll certainly look it up.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Issues transposing a range

    Range object doesn't have Paste method.

+ 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] Copy range and transposing multiple times on a new worksheet
    By dosydos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2018, 01:31 PM
  2. transposing data & creating multiple columns name range
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2014, 03:19 AM
  3. Transposing list of values with 6 zeroes in front to retain the zero after transposing
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2013, 03:34 AM
  4. Transposing and other issues
    By sstmht72499 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2013, 08:36 PM
  5. Transposing column range to row while excluding blanks
    By jkhereford in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2012, 12:33 PM
  6. Transposing a Range in Ascending Order
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:35 AM
  7. Transposing an Entire Range of Data into a Single Column
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:34 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