Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default VBA code scripts in macro

Hi,

Can anyone give me some comments or suggestions about
running an FTP command in VBA script. I tried to a macro
in my excel file sending my file directly to my
destination using FTP, here's my code, Why after this code
was performed the next code did not run.

Dim fLOG as string
Dim iBatchCopy as string
Dim cJDay as string
..
..
..
fLOG = App.Path & "\" & "LOG." & cJDay
iBatchCopy = ("cmd /c FTP -s:FTPDATA.DAT 255.255.255.0 " "
" & fLOG)

Call Shell(iBatchCopy, vbHide)
..
..
..
FileCopy myfile, otherfile -- This is not being
performed by vb scripts. WHY?

TIA
Eric




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA code scripts in macro

As far as I know your computer name/IP should be the last in command line.
Can you send me the sample FTPDATA.DAT file and tell me what exactly you
want. I can try it and let you know.

Thanks,
Dharmesh Patel


"Eric" wrote in message
...
Hi,

Can anyone give me some comments or suggestions about
running an FTP command in VBA script. I tried to a macro
in my excel file sending my file directly to my
destination using FTP, here's my code, Why after this code
was performed the next code did not run.

Dim fLOG as string
Dim iBatchCopy as string
Dim cJDay as string
.
.
.
fLOG = App.Path & "\" & "LOG." & cJDay
iBatchCopy = ("cmd /c FTP -s:FTPDATA.DAT 255.255.255.0 " "
" & fLOG)

Call Shell(iBatchCopy, vbHide)
.
.
.
FileCopy myfile, otherfile -- This is not being
performed by vb scripts. WHY?

TIA
Eric






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete scripts AND Excel Worksheet Functions 1 March 20th 09 01:16 PM
TV-Scripts, Movie, Stage, and Novel Templates cjd Hiram OH Excel Discussion (Misc queries) 0 March 30th 08 08:11 PM
Forumlas or scripts? Gor_yee Excel Discussion (Misc queries) 0 October 16th 06 01:53 PM
SQL Scripts in Excel markus Excel Discussion (Misc queries) 1 October 13th 06 12:39 PM
insurance calulater scripts bobby51 Excel Discussion (Misc queries) 0 December 26th 04 02:11 PM


All times are GMT +1. The time now is 08:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"