Skip to content

Instantly share code, notes, and snippets.

View stevehenderson's full-sized avatar

Steve Henderson stevehenderson

View GitHub Profile
@stevehenderson
stevehenderson / writeCSV
Last active December 17, 2015 08:39
VBA code to write worksheet calues to a CSV
Function writeCSV(csvPath As String) As String
'Create a CSV
Dim i As Integer
Dim lastUsedColumn As Integer
Dim done As Boolean
lastUsedColumn = 9
i = 1
done = False
While Not done