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: 1
Default Problems setting Application.DefaultFilePath


Dear all,

I'm currently writing an Excel macro and in that macro i need to change
the Default File Path (where i open\save my files concerning this
macro)

I know that setting Application.DefaultFilePath is what i need to do,
but
if i write a simple macro like this:


Code:
--------------------

Sub test()
With Application
.UserName = "Paulo Fonseca"
.StandardFont = "Arial"
.StandardFontSize = "10"
.DefaultFilePath = "c:\test"
.EnableSound = False
.RollZoom = False
End With
End Sub

--------------------


and then run it nothing changes, except the field in
TOOLS-OPTIONS-GENERAL- Default File Locations witch is now c:\test .
But still when i click on Open File it goes to the previous location.

If i do this procedure by hand (going through the menus and change the
Default file location), and then click on Open File it works!!

Do i miss any command ond my macro?
Thanks in advance

Best regards
Paulo Fonseca


--
paulojfonseca
------------------------------------------------------------------------
paulojfonseca's Profile: http://www.excelforum.com/member.php...o&userid=24976
View this thread: http://www.excelforum.com/showthread...hreadid=385071

 
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
Application.Calculation Problems Jive Excel Worksheet Functions 2 February 7th 08 02:21 PM
Problems with Excel VBA application [email protected] Excel Programming 2 June 12th 05 05:38 PM
Setting up autorecovery problems Jeff Excel Programming 1 February 2nd 05 08:29 PM
Error Setting Excel's Application.Left Property James Cox[_2_] Excel Programming 0 December 9th 04 09:13 PM
Problems calling a procedure in another application msk19[_3_] Excel Programming 1 September 14th 04 12:49 PM


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