Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
can anyone help me modify the macro below that Don sent to me. I need it to select a specific range of worksheets. example sheets 1 to 12 named (April, May, June, July ....etc) rather than selecting all the sheets in the workbook. thanks Johnny Don Guillett Excel MVP View profile More options 26 Sep, 13:26 On Sep 26, 4:30 am, Johnnyboy5 wrote: - Show quoted text - This might be quicker than a loop for text. Option Explicit Sub countjune() Dim ws As Worksheet Dim mycol As Range Dim mc As Long For Each ws In Worksheets Set mycol = ws.Columns("N") mc = mc + Application.CountIf(mycol, "Hello") Next ws MsgBox mc End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation ?:Accepting both Numbers AND specific letters("N","n"," | Excel Discussion (Misc queries) | |||
VB Script: Code for "Sheets in selection" | Excel Discussion (Misc queries) | |||
How do I sum a occurance of "text" in a group of cells | Excel Discussion (Misc queries) | |||
Print sheets by "All Sheets in workbook, EXCEPT for specific named sheets". Possible? | Excel Programming | |||
Backup to specific folder if workbook names begins with "NSR" or "MAC" | Excel Programming |