Hello Everyone
the code below currently opens the worksheet "Element list - Export.xlsx".
Dim wkb2 As Workbook
Set wkb2 = Workbooks.Open("C:\Users\andym\Desktop\Excalibur Winner\ExcaliburProPlus\_ExcaliburDataConfig\Element list - Export.xlsx")
I need to run this code on other computers without having to modify the users computer-name every time.
please help me with some code to:
1. find the users' computer-name and replace andym(my computer-name) with the users' computer-name. If no computer-name then ignore computer-name.
2. Use wildcards to open Element list(it will always be called Element list) - Export.xlsx (apply wild card to whatever characters come after "element list") e.g. Element list(****).xlsx
your learned assistance will be greatly appreciated.
best regards
Andy
the code below currently opens the worksheet "Element list - Export.xlsx".
Dim wkb2 As Workbook
Set wkb2 = Workbooks.Open("C:\Users\andym\Desktop\Excalibur Winner\ExcaliburProPlus\_ExcaliburDataConfig\Element list - Export.xlsx")
I need to run this code on other computers without having to modify the users computer-name every time.
please help me with some code to:
1. find the users' computer-name and replace andym(my computer-name) with the users' computer-name. If no computer-name then ignore computer-name.
2. Use wildcards to open Element list(it will always be called Element list) - Export.xlsx (apply wild card to whatever characters come after "element list") e.g. Element list(****).xlsx
your learned assistance will be greatly appreciated.
best regards
Andy