runtime 1004 on save as

R

RANDY IN NC

I have a project I have worked on... and I find that from my compute
the following portion of code works fine saving a file to an ft
address... I am running excel 2000 I have tried to run this fro
another computer running the same version of excel and get a "run tim
error 1004" from that computer (also running excel 2000). I have run i
from my Wifes computer running excel 2003 and it worked fine...

Any help would be appriciated....

thanks


Dim sStr As String
sStr = "ftp://address"
sStr = sStr & _
ActiveWorkbook.Worksheets(1) _
.Range("a2").Text
sStr = sStr & "_"
sStr = sStr & Format(Now, "mm-dd-yy_hh-mm")
sStr = sStr & ".csv"
ActiveWorkbook.SaveAs _
Filename:=sStr, FileFormat:=xlCS
 
D

dok112

I dont think it was until excel 2003 that you could start writing th
time in the fashion you wrote. Have you attempted to run it with th
time written as hh:mm? When you run the code, and it asks you to en
or break, if you break what portion of the code is hightlighted a
being in fault
 
R

RANDY IN NC

The macro was written and works in excel 2000.. it is not working o
another computer running excell 2000... it does work on a compute
running excel 2003....I have not tried it on a computer running 98..
thank you I will try the suggestions..
 
R

RANDY IN NC

I am sorry, I understand... I will have to get in touch with the person
who tested it for me and find out... I did ask the excel version but
did not ask the windows version... Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top