Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with saveas ftp file problem


I want to save my excel file onto our server using the save as ftp
function:

ActiveWorkbook.SaveAs Filename:= _
/subdir/" + fname

where fname is some user specified name.

This fails - which on closer inspection would appear to be due to excel
placing quotation marks around the filename and so when it tries to save
I get an error.

Has anyone found a way around this problem (other than using sendkeys -
which works but isn't desireable)


--
jmoffat
------------------------------------------------------------------------
jmoffat's Profile: http://www.excelforum.com/member.php...fo&userid=1151
View this thread: http://www.excelforum.com/showthread...hreadid=378484

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Help with saveas ftp file problem

2 things:

it's vb not java: dont use + as concatenation but &

more importantly you need to sanitize the filename
and prepare it for urls. replace spaces with %20 etc.





--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


jmoffat wrote :

This fails - which on closer inspection would appear to be due to
excel placing quotation marks around the filename and so when it
tries to save I get an error.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with saveas ftp file problem


Nope I tried it with full URL encoding and it still fails

--
jmoffa
-----------------------------------------------------------------------
jmoffat's Profile: http://www.excelforum.com/member.php...nfo&userid=115
View this thread: http://www.excelforum.com/showthread.php?threadid=37848

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Help with saveas ftp file problem

hmmm.

did you read
http://support.microsoft.com/default.aspx?scid=kb;[LN];834489
A security update is available that modifies the default behavior of
Internet Explorer for handling user information in HTTP and in HTTPS
URLs


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


jmoffat wrote :


I want to save my excel file onto our server using the save as ftp
function:

ActiveWorkbook.SaveAs Filename:= _
/subdir/" + fname

where fname is some user specified name.

This fails - which on closer inspection would appear to be due to
excel placing quotation marks around the filename and so when it
tries to save I get an error.

Has anyone found a way around this problem (other than using sendkeys
- which works but isn't desireable)

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
Problem using SaveAs method Sujata Excel Discussion (Misc queries) 4 March 30th 10 07:21 AM
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met JMay Excel Discussion (Misc queries) 2 June 17th 07 04:37 PM
SaveAs Problem Don Lloyd Excel Programming 7 January 11th 05 10:54 AM
SaveAS w/ a variable name problem Jeffp Excel Programming 2 June 8th 04 12:51 PM
SaveAs problem Jessi Excel Programming 2 July 31st 03 07:36 PM


All times are GMT +1. The time now is 09:11 AM.

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

About Us

"It's about Microsoft Excel"