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. How to configure the directory name in vba excel code

How to configure the directory name in vba excel code

Scheduled Pinned Locked Moved Visual Basic
helptutorial
2 Posts 2 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.
  • P Offline
    P Offline
    priyaahh
    wrote on last edited by
    #1

    Hi All, I am using the following line hardcoded in my vba code in excel file. D:/PISL/Input/ My problem is, in the above line instead of giving D: i should give only PISL/Input/, this can exists in any of the drives like c:, d:, e:, etc., Please help how to configure the drive name. Thanks in Advance, Regards,

    L 1 Reply Last reply
    0
    • P priyaahh

      Hi All, I am using the following line hardcoded in my vba code in excel file. D:/PISL/Input/ My problem is, in the above line instead of giving D: i should give only PISL/Input/, this can exists in any of the drives like c:, d:, e:, etc., Please help how to configure the drive name. Thanks in Advance, Regards,

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      priyaahh wrote:

      Please help how to configure the drive name.

      You could save the driveletter-prefix as a Setting[^]. Once saved, use GetSetting to read the drive and concatenate your directory-string :)

      I are Troll :suss:

      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