+ Reply to Thread
Results 1 to 2 of 2

Convert horizontal date into Vertical date

Hybrid View

ramr_sw Convert horizontal date into... 12-29-2009, 11:13 AM
PMO re: Convert horizontal date... 12-29-2009, 02:18 PM
  1. #1
    Registered User
    Join Date
    12-29-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Convert horizontal date into Vertical date

    Hi

    I am new to this forum and new to Macro

    I am attaching a file where horizontal row should be converted into Verticle Row


    Can you pls help me with it

    thanks a lot in advance
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-27-2009
    Location
    Paris, France
    MS-Off Ver
    Excel 2003
    Posts
    64

    re: Convert horizontal date into Vertical date

    Hello,

    By hand :
    1) select range A1:AX3 and copy
    2) select A1 in new worksheet and menu Edition/Pastespecial checkbox Transpose

    By macro :
    Copy this code in a standard module

    Sub TransposeSelection()
    Dim S As Worksheet
    On Error GoTo Erreur
    Selection.Copy
    Set S = Sheets.Add
    S.[a1].PasteSpecial Paste:=xlPasteAll, Transpose:=True
    S.Cells.Columns.EntireColumn.AutoFit
    Application.CutCopyMode = False
    Erreur:
    If Err <> 0 Then MsgBox "Error " & Err.Number & vbCrLf & Err.Description
    End Sub
    Best regards.

    PMO
    Patrick Morange

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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