tintin1012000
Board Regular
- Joined
- Apr 27, 2011
- Messages
- 237
<table id="post2884882" class="tborder" width="100%" align="center" border="0" cellpadding="6" cellspacing="0"><tbody><tr valign="top"><td class="alt1" id="td_post_2884882" style="border-right: 1px solid rgb(255, 255, 255);">'Give the sheet a name, today's date in this example
On Error Resume Next
sh.Name = Format(Date, "yyyy-mmm-dd")
If Err.Number > 0 Then
MsgBox "Change the name of Sheet : " & sh.Name & " manually"
Err.Clear
End If
On Error GoTo 0
End Sub
I have the above code as part of a macro to create a new work sheet form a template. I want to change the naming format from ''yyyy-mmm-dd'' to yyyy-mmm-dd (A) , yyyy-mmm-dd (B) , yyyy-mmm-dd(C) and so on,
any ideas
<!-- / message --> </td> </tr> <tr> <td class="alt2" style="border-style: none solid solid; border-color: -moz-use-text-color rgb(255, 255, 255) rgb(255, 255, 255); border-width: 0px 1px 1px;">
</td> <td class="alt1" style="border-style: none solid solid none; border-color: -moz-use-text-color rgb(255, 255, 255) rgb(255, 255, 255) -moz-use-text-color; border-width: 0px 1px 1px 0px;" align="right"> <!-- controls -->
</td></tr></tbody></table>
On Error Resume Next
sh.Name = Format(Date, "yyyy-mmm-dd")
If Err.Number > 0 Then
MsgBox "Change the name of Sheet : " & sh.Name & " manually"
Err.Clear
End If
On Error GoTo 0
End Sub
I have the above code as part of a macro to create a new work sheet form a template. I want to change the naming format from ''yyyy-mmm-dd'' to yyyy-mmm-dd (A) , yyyy-mmm-dd (B) , yyyy-mmm-dd(C) and so on,
any ideas
<!-- / message --> </td> </tr> <tr> <td class="alt2" style="border-style: none solid solid; border-color: -moz-use-text-color rgb(255, 255, 255) rgb(255, 255, 255); border-width: 0px 1px 1px;">