+ Reply to Thread
Results 1 to 3 of 3

Code to search text then select row and transpose data into new sheet

  1. #1
    Registered User
    Join Date
    12-07-2016
    Location
    London, UK
    MS-Off Ver
    2010
    Posts
    6

    Code to search text then select row and transpose data into new sheet

    Hi,

    Can someone please help me with a code such that it searches for the text 'Total' then simply takes the whole data on that same row and transposes onto a new worksheet?

    e.g.
    Cell F5 contains the text 'Total'. There are hard coded values on row 5 from G5 to T5 which needs to be transposed into a new worksheet such that column A is now populated from A7 to A20 with the same values?

    If the row where the text 'Total' was fixed then my 'recorded macro' works fine. But because the row where 'Total' is located varies, my recorded macro is not working.

    Any help much appreciated.

    Tks,
    Nick

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Code to search text then select row and transpose data into new sheet

    Attach a sample spreadsheet with expected results, remove any sensitive data.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Code to search text then select row and transpose data into new sheet

    Please Login or Register  to view this content.

+ 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] VBA code, select conditional formatting content and transpose Sorted to other sheet
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-29-2014, 10:00 PM
  2. VBA Code to transpose data from Sheet 1 to Sheet 2 in a specific order
    By zicitron in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2014, 07:20 AM
  3. VBA code to select all data then copy and paste all unique value to another sheet
    By ahs004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2013, 09:07 AM
  4. Search, select,cut and paste the data into a new sheet
    By Arun7777 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2012, 05:50 AM
  5. [SOLVED] Modify code to transpose a stack of data to rows on to delimit on text hone number field
    By coachtim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2012, 02:52 PM
  6. Search to find matching cells and copy/transpose adjacent data to original sheet?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-12-2009, 09:20 PM
  7. code to select all data on sheet
    By bpreas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2008, 02:23 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