Skip to content

Instantly share code, notes, and snippets.

@cverbiest
Created July 3, 2015 07:54
Show Gist options
  • Save cverbiest/07114bad617718a5c9db to your computer and use it in GitHub Desktop.
Save cverbiest/07114bad617718a5c9db to your computer and use it in GitHub Desktop.
Excel macro to convert proutil dbanalys txt output to columns
Sub dbanalys2table()
'
' dbanalys2table Macro
'
' FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), Array(7, 1)), TrailingMinusNumbers:=True
Range("A1").Replace What:="Time stamp", Replacement:="""Time Stamp"""
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=False, _
Semicolon:=False, Comma:=False, Space:=True, Other:=False
Cells.Select
Cells.EntireColumn.AutoFit
Rows("1:1").Select
Selection.AutoFilter
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment