Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using Excel 2000 (yes ancient, I know).
I have a workbook with about 50 worksheets, I would like to copy the name of each worksheet to the A5 cell of each sheet, and if possible make it large bold text. Is there a way to automate that using a macro so I don't have to do it manually? Also I have a list of worksheet names in the A column, I wrote a simple subroutine (below) to open a worksheet when the matching text is double-clicked. Is there a way to make this code work on all 50 sheets without copying the code to each worksheet manually? I am not too fluent with VBA, thanks! Mike Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Dim strSheetName As String strSheetName = Trim(Target.Value) If Trim(Target.Value) = "" Then Exit Sub Worksheets(strSheetName).Activate End Sub |
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 |