+ Reply to Thread
Results 1 to 3 of 3

Macro to transpose data into new row on a different sheet?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-07-2020
    Location
    Australia
    MS-Off Ver
    Excel
    Posts
    2

    Question Macro to transpose data into new row on a different sheet?

    Hello!

    I've been struggling all day with this, being very new to VBA. Could someone please look at my code and tell me where I'm going wrong?

    I'm trying to re-engineer the data collection system at work, where data is collected into a generic table in A and accumulates in B, ordered by date (where the table in sheet A is cleared every day). I've gotten as far as the code below, which does what I want except it puts it right at the bottom of the sheet (row 1048576). I don't know how to implement "transpose data into the next empty row".


    Worksheets("dbh").Range("O7:O33").Copy Worksheets("cbh").Range("A" & Rows.Count).PasteSpecial Paste:=xlPasteValues, Transpose:=True Application.CutCopyMode = False
    Thank you for any and all help!
    Last edited by Pepe Le Mokko; 02-07-2020 at 03:17 AM. Reason: Code tags

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Macro to transpose data into new row on a different sheet?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then 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

    I did it for you this time. Please read forum rules. Thanks

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Macro to transpose data into new row on a different sheet?

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

+ 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] Macro to Transpose and Copy Data to Output Sheet
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2017, 10:36 AM
  2. [SOLVED] Macro to Transpose and Copy Data to a New Sheet
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-02-2017, 04:55 PM
  3. Macro to transpose the data from tab to another sheet
    By young_86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2016, 01:22 PM
  4. Transpose data to another sheet using macro
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-29-2015, 03:49 PM
  5. Macro to transpose data from one sheet to another
    By Cupragsw in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-26-2013, 12:17 PM
  6. [SOLVED] Macro to transpose vertical data horizontally from one sheet to another
    By Scott_88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2013, 06:27 AM
  7. [SOLVED] Manipulate and transpose data to another sheet via a Macro
    By Phil_MacRae in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2012, 02:22 PM

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