Change
Me.Name = Range("b9").Value
to
Me.Name = Range("b9").Text
The Text property returns exactly what is displayed in the cell, with
formatting, while Value gets the underlying, unformatted value.
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
On Fri, 6 Feb 2009 21:22:17 +0000, Cook
wrote:
dan dungan;217711 Wrote:
How are you getting the tabs to autoname now?
Yes, just need to modify the code to bring the zero over.
Here is what I have so far.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("b9")) Is Nothing Then
On Error Resume Next
Me.Name = Range("b9").Value
If Err.Number < 0 Then
MsgBox "Quote sheet has not been named"
End If
On Error GoTo 0
End If
End Sub