I'm working on a macro which involves generating a filename and saving an excel sheet as pdf with that name.
I was able to generate target folder name as follows.
user_name [/FONT][/COLOR]= Environ$("UserName")
file_dir ="C:\Users"& user_name &"\Documents\Jobs"</code>The file name is created as...