LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA error with Open for Output / Append: File not Found

Hi all,

I'm having a very wierd error with my MS Excel VBA coding. I have a
macro that gets caught on the line

Open "C:\{filename}" for Append as #2

It throws the error, "file not found" during runtime. I'm confused for
2 reasons: 1: Append should create the file if it wasn't found,
shouldn't it? and 2: this exact same macro works on other machines
that as far as i can tell are identical. Both are running the same
Excel version (2002 SP3), both XP Pro, and same antivirus (Kaspersky)
as well. I've been trying for a couple days on and off to try to
figure out the problem, and have come up with nada. I found a previous
post that sounds similar he

http://groups.google.com/group/micro...0e3b8399774704

Does anyone know of a glitch in VBA that makes the Open command work
sometimes and not others? or is there some windows setting that
affects it's ability to create a file? it just doesn't make any sense
to me! Help!

Thanks to any and all,
-Michael

 
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
Using Excel VBA: sending output data table to created .csv file +append Options Mike Excel Discussion (Misc queries) 1 December 10th 11 12:39 PM
How to use Open as Append for log file mike Excel Programming 2 September 4th 06 05:02 AM
Open a print output sent to file Ted Johnston Excel Discussion (Misc queries) 0 February 24th 06 10:10 AM
Open CSV file, format data and write output to a text file. BristolBloos Excel Programming 1 October 18th 05 03:50 PM
Cannot open file for output DavidTM Excel Programming 1 September 27th 05 09:26 AM


All times are GMT +1. The time now is 09:39 PM.

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"