I have a list of inventory forms that I keep up with every month. I've been trying to automate a lot of what I do and am close to finishing my macro excel document. The format of all the workbook names is *FirstInitialLastname_Inventory_Year.xls. I have my workbook pull the sheets from these workbooks and rename them to the filename. How do I only rename the sheets to only the FirstInitalLastname part so I can compare the names to a list to see who all I don't have?
The code I currently have is
The code I currently have is
Code:
With ActiveWorkbook ActiveSheet.Name = Left(.Name, 30)
End With