Having just discovered how macros work, I'd like a little help to finish my code. After doing different researches, I didn't manage to get my code to run as I wanted.
The purpose of the macro is simple, I would like to be able to retrieve the name of my file so that I can give this name to my configurations. Basically, for parts files that have only one configuration, I'd like to rename all configurations by the file name. This will allow me to be able to make nomenclatures by choosing the name of the configuration and to have all the names.
I already have a bit of macro that works but I would have to replace the XXXXX with the name of the file which I can't do otherwise when I run this code, it renames the configuration to XXXXX.
SW 15
Dim swApp As Object
Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long