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: 340
Default Vista and creating ini files

I tried to create a simple ini file in the a program files folder and Vista
would not let me do so. The code was something like:

I = FreeFile
fName = thisworkbook.path & "\at systems report generator.ini"
Open fName For Output As #I

The above would crash on the Open statement. I tried manually to save a prn
file to the directory and got a permission denied error. Which is probably
the same as the path/file access error that appeared in VB.

I also tried to the windows temp directory, the windows directory, and the
user's temp directory. I tried using short file names and that did not make
a difference.

The only work around appears to be to save to the user's my document
directory. Which is bad for many reasons.

Anyone have a solution?

Thanks,

Bob Flanagan


 
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
Vista opening Excel Files across a network very slowly Daniel Excel Discussion (Misc queries) 1 February 9th 09 06:21 PM
Excel 2003 slow closing files in Vista SP1 Sunny Excel Discussion (Misc queries) 0 June 4th 08 04:42 PM
Excel FILES WILL NOT OPEN WITH NEW VISTA OPER SYSTEM Tracy Excel Discussion (Misc queries) 1 November 11th 07 02:21 AM
Vista oper system will not accept old excell files Tracy Excel Discussion (Misc queries) 2 November 10th 07 06:15 PM
vista & XP editing web files Gnarly Excel Discussion (Misc queries) 2 March 11th 07 12:58 PM


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