Search : in
By :

Excel VBA for Multiple Worksheets

Siebel SME, on Feb 11, 2009 9:00:04 pm GMT 
 Report this message to moderators

Hello,

I need a macro/VB Script that will search through calendars over multiple worksheets to see if the certain strings are found and return a message noting the number of occurences of those strings. Also, if an occurence is beyond the first occurence the following year, it will not count that first occurence but add the occurences beyond the first one plus that new occurrence.

For example,

Occurences:

January 14, 2008
June 17, 2008
August 1, 2008
December 24, 2008

Every occurence will output "Person X has 1, 2,.. 4 occurences".

Its now 2009.

Occurences:

January 12, 2009

Output "Person X has 5 occurences."

January 26, 2009

It outputs "Person X has 5 occurences."

Why? Because it is out of range of first occurence.

Lets say next one is August 22, 2009

Outputs "Person X has 4 occurences."

Why? It counts

December 24, 2008
January 12, 2009
January 26, 2009
August 22, 2009

Understand? Thanks in advance! :)

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « Excel VBA for Multiple Worksheets » in :
How to Create Msg/Popup to notifications in Excel VBA? Show How to Create Msg/Popup to notifications in Excel VBA? Issue Solution Note Issue I need a Excel VB script to notify/popup a message when the number of the letter U on a calendar exceeds 6, 8, 12 etc. It will have to check the range of...
Repainting a cell using excel VBA ShowRepainting a cell using excel VBA Issue Solution Note Issue I am writing a code in excel VBA to generate a report.I am totally new to VBA.Here's my code Private Sub CommandButton1_Click() Dim a1 As Integer Dim d1 As Integer Dim...
VBA: Finding Hdc in an Excel worksheet or UserForm ShowVBA: Finding Hdc in an Excel worksheet or UserForm Here are two small examples on how to find Hdc in a worksheet: By clicking on Sheet1 the UserForm is displayed. Put the pointer on UF, hold the left mouse button down and drag the...
Import contacts from Excel to Outlook ShowImport contacts from Excel to Outlook Issue Solution Issue How to import a contact list from Excel to Outlook and having them in a single list of contact , and not as splited items? Solution By using the software Excel 2000 and...
Environment variables ShowEnvironment variables An environment variable is a dynamic value loaded into the memory that can be used by several processes operating simultaneously. On most operating systems, the location of some libraries or of the main system executables may...
Worksheet - Cells ShowThe Concept of a Cell A "cell" is the intersection between a line (horizontal) and a column (vertical) on a worksheet. Thus, the name of the line combined with the name of the column gives the cell's coordinates (the term address is sometimes also...