+ Reply to Thread
Results 1 to 4 of 4

Transpose whole excel file through vba

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    Chennai ,India
    MS-Off Ver
    Excel 2003
    Posts
    15

    Transpose whole excel file through vba

    I have an excel file that is exported from somewhere.

    It has rows and columns formated(colored and bolded) based on various criteria.

    Now I have to write a macro that will just transport the whole excel file with all the formating.

    I have attached the format of the input and output in the file "Sample_Transpose.xls"Sample_Transpose.xls

    Kindly help


    Thanks in advance

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Transpose whole excel file through vba

    Hi,

    Try this

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    08-11-2010
    Location
    Chennai ,India
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Transpose whole excel file through vba

    Hi Steffen,

    Thanks for the your reply.

    But I will not be able to hardcode as the last cell is not always same.

    Also I need to transpose the whole thing again from the same place as the original table.

    Kindly help

    Thanks in advance.

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Transpose whole excel file through vba

    But I will not be able to hardcode as the last cell is not always same.

    This can be done by doing this

    [CODE]
    Range("A3:C" & Range("C3").end(xlDown).Row).Copy
    [CODE]

    Also I need to transpose the whole thing again from the same place as the original table.

    Im not sure what you mean here, is it not like you showed in the sample workbook?
    If it isn't then please upload a new example, that describes the whole problem.

    You do not have to write in the workbook... Just a sheet with before data and following sheets with wanted output.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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