Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need some help and explaination. Thks.


Hi, can anyone help me with this problem??
Currently, I am using excel 97 on an Window XP platform. My previou
Windows 98 and excel 97 was gone due to an upgrade of cpu. After th
changes, I start to experience some unexplained changes which I hop
someone can help me.

I have one excel macro which generates a .bat script for ftp files fro
a server everyday. It is working fine on my supervisor com but not o
mine. :(

First problem is in this code:
BatchFile = Range("d2").Value
Open BatchFile For Output As #1
Error = When I open the excel macro, it produce an error (Run-tim
error 55: File already open) which I am sure there isn't any ope
file.

Second problem is in this code:
Set fs = Application.FileSearch
With fs
.LookIn = "z:\GsmOmc\TrafRept\IDD\"
.FileName = "*IDD_*.xls" <
problem
Error = When the excel macro runs to .FileName command, it produces a
error (Run-time error 5: invalid procedure call or argument)
Solution = My search on net is a suggestion to replace "*IDD_*.xls
with "". which will display ALL the files which is not what I wanted.
wish to make as little change as possible because it is data critical.

Can someone help me with the above two problems?
The macro runs perfectly fine on my supervisor cpu (Excel 97 and windo
2000

--
stevetan201
-----------------------------------------------------------------------
stevetan2010's Profile: http://www.excelforum.com/member.php...fo&userid=1624
View this thread: http://www.excelforum.com/showthread.php?threadid=27647

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
I WANT RSWORDS FORMULAS EXPLAINATION G.M.Golabhanvi Excel Worksheet Functions 2 October 22nd 08 08:20 AM
Explaination of Logical If Then Statement Mitchell Excel Worksheet Functions 3 July 19th 08 06:15 PM
Function explaination need hoachen Excel Worksheet Functions 2 July 26th 07 11:38 PM
I need to understand how the IRR, NPV and FPV formulas work? Thks Juanmi Excel Worksheet Functions 1 August 15th 06 05:27 PM
Formula explaination r Excel Discussion (Misc queries) 6 May 16th 06 04:12 AM


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