RandomGerman
06-01-2017, 01:18 AM
Hi all,
when I had some trouble with a few macros, copying picutres from a hidden presentation, I learnt that
Environ$("USERNAME") & "\AppData\Roaming\Microsoft\AddIns\"
does not work on every machine, as the USERNAME seems to be not defined correctly anywhere. Or whatever the reason is.
Environ$("appdata") & "\Microsoft\AddIns\"
worked more successful on these machines.
But is there a way to reach the desktop, too?
I have one macro, creating a folder on the desktop and storing some things there - and it should be on the desktop, as the user needs to find it later. Until now, I used
Environ("USERPROFILE") & "\Desktop\Name_of_the_new_folder\"
Is there a way to avoid using "USERPROFILE" here, too?
Environ("desktop") & "\Name_of_the_new_folder\"
is not working. But maybe there is something like this? Does anyone know?
Thank you!
RG
when I had some trouble with a few macros, copying picutres from a hidden presentation, I learnt that
Environ$("USERNAME") & "\AppData\Roaming\Microsoft\AddIns\"
does not work on every machine, as the USERNAME seems to be not defined correctly anywhere. Or whatever the reason is.
Environ$("appdata") & "\Microsoft\AddIns\"
worked more successful on these machines.
But is there a way to reach the desktop, too?
I have one macro, creating a folder on the desktop and storing some things there - and it should be on the desktop, as the user needs to find it later. Until now, I used
Environ("USERPROFILE") & "\Desktop\Name_of_the_new_folder\"
Is there a way to avoid using "USERPROFILE" here, too?
Environ("desktop") & "\Name_of_the_new_folder\"
is not working. But maybe there is something like this? Does anyone know?
Thank you!
RG