I've used the below VBA code in Windows Excel with success. When I run the same code on a Mac it chokes on the Shell line. Has anybody had any success ftp'ing using VBA on a Mac?
Open "file.txt" For Output As #lInt_FreeFile01
Print #lInt_FreeFile01, "open 'hostname'"
Print #lInt_FreeFile01, "'user'"
Print #lInt_FreeFile01, "'password'"
Print #lInt_FreeFile01, "binary"
Print #lInt_FreeFile01, "send 'file' 'file'
Print #lInt_FreeFile01, "bye"
Close #lInt_FreeFile01
Open "file.scr" For Output As #lInt_FreeFile02
Print #lInt_FreeFile02, "ftp -s:file.txt"
Print #lInt_FreeFile02, "Echo ""Complete"" > " & "file.out"
Close #lInt_FreeFile02
Shell ("file.scr"), vbMinimizedNoFocus
'Wait for completion
Do While Dir("file.out") = ""
DoEvents
Loop
Open "file.txt" For Output As #lInt_FreeFile01
Print #lInt_FreeFile01, "open 'hostname'"
Print #lInt_FreeFile01, "'user'"
Print #lInt_FreeFile01, "'password'"
Print #lInt_FreeFile01, "binary"
Print #lInt_FreeFile01, "send 'file' 'file'
Print #lInt_FreeFile01, "bye"
Close #lInt_FreeFile01
Open "file.scr" For Output As #lInt_FreeFile02
Print #lInt_FreeFile02, "ftp -s:file.txt"
Print #lInt_FreeFile02, "Echo ""Complete"" > " & "file.out"
Close #lInt_FreeFile02
Shell ("file.scr"), vbMinimizedNoFocus
'Wait for completion
Do While Dir("file.out") = ""
DoEvents
Loop