Results 1 to 9 of 9

Thread: System SaveAs Dialog Box

  1. #1
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,753

    System SaveAs Dialog Box

    How do I set the Save As path in the system dialog box? When I do downloads from here I want the default path to be E:\All Projects\VB Projects
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  2. #2
    Hyperactive Member
    Join Date
    Jun 12
    Location
    I'm living in VBForum bcz its members deserve respect and appreciation
    Posts
    315

    Re: System SaveAs Dialog Box

    I did use Save As in Excel report as shown below:

    Code:
       
     xlwk.SaveAs "D:Reports\Asia" & vernum & Format(Date, "~mm-dd-yyyy") & Format(Time, "(h-mm-ss)") & ".xls"
     xlwk.Close SaveChanges = False Format(Date, "mm/dd/yyyy")
      xlwk.AutoUpdateSaveChanges = True

  3. #3
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: System SaveAs Dialog Box

    Are you referring to your browser download box?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  4. #4
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,753

    Re: System SaveAs Dialog Box

    Quote Originally Posted by koolsid View Post
    Are you referring to your browser download box?
    For the most part, yes, but I use two different browsers, Here, I use Chrome mostly but at times I do use IE.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  5. #5
    PowerPoster
    Join Date
    Feb 12
    Location
    West Virginia
    Posts
    4,948

    Re: System SaveAs Dialog Box

    I haven't paid much attention to Chrome but don't most browsers just save files by default to the last location you selected?
    On this PC IE is saving to the desktop by default, on another PC it is saving to C:\Downloads and on yet another PC it is saving to M:\Temp\Downloads all of which are paths I selected at some point and at least IE seems to remember the last selected path for downloads.

  6. #6
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: System SaveAs Dialog Box

    For IE9 see this link

    http://www.sevenforums.com/tutorials...-location.html

    Also wondering what does this have to do with vb6?

    For Chrome, see if this help?

    http://support.google.com/chrome/bin...n&answer=95574
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  7. #7
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,753

    Re: System SaveAs Dialog Box

    Quote Originally Posted by koolsid View Post
    Also wondering what does this have to do with vb6?
    Because I download VB6 code from here
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  8. #8
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: System SaveAs Dialog Box

    Thread moved to General PC
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  9. #9
    Frenzied Member
    Join Date
    Aug 11
    Location
    B.C., Canada
    Posts
    1,838

    Re: System SaveAs Dialog Box

    you can use sendkey... sendkeys doesnt work on my windows so i added a function to it called SendKey
    Code:
    Option Explicit
    
    
    Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    
    Private Const SW_MAXIMIZE As Long = 3
    
    Private IE As Object
    
    
    Private Sub Command1_Click()
    Set IE = CreateObject("InternetExplorer.Application")
    
    With IE
       .Visible = True
       .Navigate "www.google.com"
       .Silent = True
    End With
    
    Sleep 1000
    ShowWindow IE.hwnd, SW_MAXIMIZE
    Sleep 200
    SendKey "^{j}"
    Sleep 200
    SendKey "{TAB}"
    SendKey "%{o}"
    Sleep 200
    SendKey "{TAB}"
    SendKey "{TAB}"
    SendKey "{TAB}"
    SendKey "{TAB}"
    SendKey "{TAB}"
    Sleep 200
    SendKey "{ENTER}"
    Sleep 200
    SendKey "{E}{:}{\}{A}{l}{l}{ }{P}{r}{o}{j}{e}{c}{t}{s}{\}{V}{B}{ }{P}{r}{o}{j}{e}{c}{t}{s}"
    SendKey "{ENTER}"
    Sleep 200
    SendKey "{TAB}"
    Sleep 200
    SendKey "{ENTER}"
    Sleep 200
    SendKey "{TAB}"
    SendKey "{TAB}"
    SendKey "{ENTER}"
    Sleep 200
    SendKey "{TAB}"
    SendKey "{TAB}"
    SendKey "{ENTER}"
    End Sub
    
    Private Function SendKey(sKey As String)
    Dim WshShell As Object
     Set WshShell = CreateObject("WScript.Shell")
      WshShell.SendKeys sKey
    End Function
    Last edited by Max187Boucher; Jul 21st, 2012 at 05:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •