Hi everyone!
I am in desperate need of assistance with this excel macro!I have imported csv data into a worksheet template but I want it to acutomatically rename the active worksheet with the first 5 letters in cell B2 coupled with the Date in D1 eg campb11032010. I have tried a few macros and it does not want to work for me!!! Additionally I would like this data in column F2:F24 to transfer into another worksheet called campbells into a column based on the date. ANY HELP WITH THIS WOULD BE MUCHLY APPRICIATED!!!!!!!
Matthew
This line of code will do that:
Code:ActiveSheet.Name = Left([B2], 5) & "-" & Format(Date, "MMDDYY")
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks