Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default runtime 1004 on save as


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

--
RANDY IN N
-----------------------------------------------------------------------
RANDY IN NC's Profile: http://www.excelforum.com/member.php...fo&userid=2977
View this thread: http://www.excelforum.com/showthread.php?threadid=50901

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default runtime 1004 on save as


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

--
dok11
-----------------------------------------------------------------------
dok112's Profile: http://www.excelforum.com/member.php...fo&userid=1058
View this thread: http://www.excelforum.com/showthread.php?threadid=50901

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default runtime 1004 on save as

are your slashes all "/" rather than "\". Is the computer with a problem
running win98?

Just a guess of course.

--
Regards,
Tom Ogilvy

"RANDY IN NC"
wrote in message
...

I have a project I have worked on... and I find that from my computer
the following portion of code works fine saving a file to an ftp
address... I am running excel 2000 I have tried to run this from
another computer running the same version of excel and get a "run time
error 1004" from that computer (also running excel 2000). I have run it
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:=xlCSV


--
RANDY IN NC
------------------------------------------------------------------------
RANDY IN NC's Profile:

http://www.excelforum.com/member.php...o&userid=29778
View this thread: http://www.excelforum.com/showthread...hreadid=509018



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default runtime 1004 on save as


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..

--
RANDY IN N
-----------------------------------------------------------------------
RANDY IN NC's Profile: http://www.excelforum.com/member.php...fo&userid=2977
View this thread: http://www.excelforum.com/showthread.php?threadid=50901

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default runtime 1004 on save as

I said windows 98, not Excel 98. I am talking about the operating system.
The version of excel should have no effect.

--
Regards,
Tom Ogilvy


"RANDY IN NC"
wrote in message
...

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


--
RANDY IN NC
------------------------------------------------------------------------
RANDY IN NC's Profile:

http://www.excelforum.com/member.php...o&userid=29778
View this thread: http://www.excelforum.com/showthread...hreadid=509018





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default runtime 1004 on save as


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

Tom Ogilvy Wrote:
I said windows 98, not Excel 98. I am talking about the operating
system.
The version of excel should have no effect.

--
Regards,
Tom Ogilvy


"RANDY IN NC"

wrote in message
...

The macro was written and works in excel 2000.. it is not working on
another computer running excell 2000... it does work on a computer
running excel 2003....I have not tried it on a computer running

98...
thank you I will try the suggestions...


--
RANDY IN NC

------------------------------------------------------------------------
RANDY IN NC's Profile:

http://www.excelforum.com/member.php...o&userid=29778
View this thread:

http://www.excelforum.com/showthread...hreadid=509018



--
RANDY IN NC
------------------------------------------------------------------------
RANDY IN NC's Profile: http://www.excelforum.com/member.php...o&userid=29778
View this thread: http://www.excelforum.com/showthread...hreadid=509018

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default runtime 1004 on save as


Sorry yes all of my "/" are in the same direction..

Tom Ogilvy Wrote:
I said windows 98, not Excel 98. I am talking about the operating
system.
The version of excel should have no effect.

--
Regards,
Tom Ogilvy


"RANDY IN NC"

wrote in message
...

The macro was written and works in excel 2000.. it is not working on
another computer running excell 2000... it does work on a computer
running excel 2003....I have not tried it on a computer running

98...
thank you I will try the suggestions...


--
RANDY IN NC

------------------------------------------------------------------------
RANDY IN NC's Profile:

http://www.excelforum.com/member.php...o&userid=29778
View this thread:

http://www.excelforum.com/showthread...hreadid=509018



--
RANDY IN NC
------------------------------------------------------------------------
RANDY IN NC's Profile: http://www.excelforum.com/member.php...o&userid=29778
View this thread: http://www.excelforum.com/showthread...hreadid=509018

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
runtime error 1004 valdesd Excel Discussion (Misc queries) 0 October 12th 05 05:30 PM
Runtime error 1004 Terry K Excel Programming 2 September 7th 05 09:57 PM
Runtime error 1004 Daniel Excel Programming 2 July 19th 05 04:37 AM
Runtime Error '1004' Dean[_4_] Excel Programming 2 January 9th 05 09:02 PM
Runtime error '1004': Capinvest Excel Programming 2 August 4th 03 07:16 PM


All times are GMT +1. The time now is 04:03 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"