Hi Jon,
Yes I tried your csv version, and it works, apart from the fact that it drops the leading 0.
However I have now found a solution to that by programming the code of the program that reads the data- it counts the length of the variable (as that is always a set length) and if it is shorter than it should be, it adds a 0 to the front until it is the correct length.
(This seems to work as it is).
I have another question about your code:
Using your code
[VBA]
Sub RunCSV()
Dim objFSO As Object
Dim objOutputFile As Object
Dim rngCell As Range
Dim lngLastRow As Long
lngLastRow = Range("AC" & Rows.Count).End(xlUp).Row
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objOutputFile = objFSO.CreateTextFile("C:\Diverse\netrates.csv")
For Each rngCell In Range("AC2:AC" & lngLastRow)
objOutputFile.WriteLine rngCell.Text
Next rngCell
Set objFSO = Nothing
Set objOutputFile = Nothing
Set rngCell = Nothing
End Sub
[/VBA]
Is it possible to select a specific range/cell within a specific worksheet where the data is written.
In this instance, the user needs to be able to add extra data to the bottom of an existing list. (In otherwords, the code above is fine for CREATING the inital list, but afterwards, they will need to add to the EXISTING list).
Thanks as always.