Results 1 to 7 of 7

Thread: How to read in server name, software name and version from a text file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,709
    Location
    Assumes list is currently in column "A" of Excel Sheet. Code goes in Worksheet Code page

    Sub TransposeBySeven()
    Dim Rw as Long, Col As Long
    Col = 3
    Application.ScreenUpdating = False
    
    For Rw = 1 To Cells(Rows.Count, "A").End(xlUp).Row Step 7
       Cells(Rw, "A").Resize(1, 7).Copy Cells(1, Col)
       Col = Col + 2
    Next Rw
    
    Application.ScreenUpdating = True
    End Sub
    Last edited by SamT; 04-16-2021 at 08:01 AM.
    Please take the time to read the Forum FAQ

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •