Heh, yeah, I do use the recorder quite a bit, mostly because VB isn't like the
BASIC I grew up on (Apple & Commodore). Good to know I'm not the only one.
I followed your suggestion, add a couple extra lines (save, close, alerts) and
it worked the first time -- pretty darn diddly simple! Thank you for the
assistance (and Frank for prodding ;-)
Here's the final result (names have been changed to protect the innocent):
--------------------------------------------------------
Private Sub Workbook_Open()
'Because double-quotes in the Siebel export file can cause import problems for
Access
'they are stripped from the file.
Application.DisplayAlerts = False
'Import the Siebel CSV file
Workbooks.OpenText Filename:= _
"\\server\foo\leads_output.csv", _
Origin:=xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:=
_
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True,
Semicolon:=False, _
Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(Array(1,
1), _
Array(2, 1), Array(3, 1), Array(4, 1)), TrailingMinusNumbers:=True
'Replace all occurrences of double-quotes with nothing (erase them)
Cells.Replace What:="""", Replacement:="", LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False,
ReplaceFormat:=False
ActiveWorkbook.Save 'Save the modified CSV file
ActiveWorkbook.Close 'Close it
Application.DisplayAlerts = True
Application.Quit 'Exit this workbook
End Sub