+ Reply to Thread
Results 1 to 6 of 6

Macro to open a folder

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2010
    Posts
    20

    Macro to open a folder

    I have tried this code it does not allow me to open a file from the folder

    With filename
    .InitialFileName = ("C:\Documents\bin\february")
    .Show
    End With

    I will like to know if there is a code that will let me open a file from a folder that the macro opens.

    Have also tried another code that gives me the error that the file is encrypted.

    Is there such a code possible?

  2. #2
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Macro to open a folder

    Do you want to open the excel file?

    you can just use something like this.

    Please Login or Register  to view this content.
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  3. #3
    Registered User
    Join Date
    04-10-2012
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Macro to open a folder

    Thanks for quick response

    I want to open a folder and from that folder open the file
    This because the variable (month) changes with input from a input box, and from there I can choose any file I need to open

  4. #4
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Macro to open a folder

    Then try this..

    Please Login or Register  to view this content.
    Last edited by ragavan.sridar1; 03-14-2013 at 12:46 PM.

  5. #5
    Registered User
    Join Date
    04-10-2012
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Macro to open a folder

    Works like a Charm Thanks!!

  6. #6
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Macro to open a folder

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1