Consulting

Results 1 to 2 of 2

Thread: If / Instr command to change variable

  1. #1

    If / Instr command to change variable

    Hi,

    I'm very much a newbie to VBA, i am in the middle of writing up something at the minute that is just pulling off data from AD and has the option to check the users filestore / profile size.

    Everything is working ok so far, just that when checking on the profile size its reporting back it hasn't be found even though the user does have one.

    Our domain used to us an Enviroment Variable that set the users profile to *%ProfilePathExtension%

    * represents the users unique ID

    The profile path is now *.STRIDE

    I need something within the code that converts the "*%ProfilePathExtension%" to "*.STRIDE"

    If anyone can offer any help, as i have seen Instr stuff on the web and dont know if this would be the route to take.

    Regards,
    Dan

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Do you mean

    [vba]

    myPPE = Environ("ProfilePathExtension")[/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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