Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Excel VBA - Directory Controls/Codes, File Names with Dates

Excel VBA - Directory Controls/Codes, File Names with Dates

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gt5608b
    wrote on last edited by
    #1

    I am just getting started with VBA for Excel and don't knwo the code to get to do the following: 1. Saving a Workbook I am creating with the following format ddmmmyyyy & _Weekly_Forecast.xls in a folder named "Weekly Reports" right under the folder where the master workbook is. The file being saved is generated from a copy/paste of two sheets of the master workbook that is found in the current directory. 2. How to change directory without the need of typing the entire path. Does anything like "~" exist? The problem being I don't want to force users to save the workbook on a given location. As long as they have the workbook in the Weekly Forecasts folder I am providing them with it should not matter where they place it. Doon't want the coding to depend on that. Carlos Rodriguez

    D S 2 Replies Last reply
    0
    • G gt5608b

      I am just getting started with VBA for Excel and don't knwo the code to get to do the following: 1. Saving a Workbook I am creating with the following format ddmmmyyyy & _Weekly_Forecast.xls in a folder named "Weekly Reports" right under the folder where the master workbook is. The file being saved is generated from a copy/paste of two sheets of the master workbook that is found in the current directory. 2. How to change directory without the need of typing the entire path. Does anything like "~" exist? The problem being I don't want to force users to save the workbook on a given location. As long as they have the workbook in the Weekly Forecasts folder I am providing them with it should not matter where they place it. Doon't want the coding to depend on that. Carlos Rodriguez

      D Offline
      D Offline
      Drew
      wrote on last edited by
      #2

      I don't have an answer, but you may get one on a different site. Try Access-Programmers. Of course, they deal with Access issues, but they also write in VBA. Just a thought.

      1 Reply Last reply
      0
      • G gt5608b

        I am just getting started with VBA for Excel and don't knwo the code to get to do the following: 1. Saving a Workbook I am creating with the following format ddmmmyyyy & _Weekly_Forecast.xls in a folder named "Weekly Reports" right under the folder where the master workbook is. The file being saved is generated from a copy/paste of two sheets of the master workbook that is found in the current directory. 2. How to change directory without the need of typing the entire path. Does anything like "~" exist? The problem being I don't want to force users to save the workbook on a given location. As long as they have the workbook in the Weekly Forecasts folder I am providing them with it should not matter where they place it. Doon't want the coding to depend on that. Carlos Rodriguez

        S Offline
        S Offline
        Senthil S
        wrote on last edited by
        #3

        Hi, I submitted my first n only one article abt Excel need n using in VB.Net. Use my article which may help u.... The article is http://www.codeproject.com/useritems/Senthil\_S\_\_Software\_Eng\_.asp And anything pls reply r inform to me... Pls..

        Senthil S Software Engineer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups