Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 4/3/2016 5:45 PM, GS wrote:
Perhaps simply... Sub Insert_Sheetname() Dim n& On Error GoTo errorhandler For n = 1 To ActiveWorkbook.Sheets.Count With Sheets(n).Range("A5") .Value = Sheets(n).Name: .Font.Bold = True: .Font.Size = 12 End With Next NormalExit: Exit Sub errorhandler: MsgBox Err.Number & " " & Err.Description End Sub Yes much cleaner, thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unhide sheet, copy and rename new sheets from list, rehide sheet | Excel Programming | |||
How to: copy value from active sheet to all other sheets with VBA (in desired cell) | Excel Programming | |||
Copy and paste same cell from a number of sheets into a new sheet | Excel Programming | |||
Copy Sheet to new Sheet and clear cells on original sheets | Excel Discussion (Misc queries) | |||
copy and paste from different sheets into one sheet using a VB code | Excel Programming |