Hi,
I've created a macro to copy a worksheet to the first position in a workbook and clear the user contents cells. Simple enough. Before I exit, I'd like to highlight the new worksheet's name tab, so the user is prepped to give the worksheet a descriptive name. The macro record feature isn't picking this up, so I'm hoping there's a way to do it in VBA. I'm using Excel 2002 SP3.
Here's my code
Thank you.
I've created a macro to copy a worksheet to the first position in a workbook and clear the user contents cells. Simple enough. Before I exit, I'd like to highlight the new worksheet's name tab, so the user is prepped to give the worksheet a descriptive name. The macro record feature isn't picking this up, so I'm hoping there's a way to do it in VBA. I'm using Excel 2002 SP3.
Here's my code
Code:
Sub NewReport()
'
' NewReport Macro
' Macro recorded 8/29/2006 by Lloyd Cross
'
' Keyboard Shortcut: Ctrl+Shift+R
'
Sheets(1).Copy Before:=Sheets(1)
Range("B2:B11").Select
Selection.ClearContents
[b]<<Highlight Active Sheet's Name Tab>>[/b]
End Sub
Thank you.