index > Visual Basic for Applications (VBA) > Help with highlighting employees nominating each other for awards...

Help with highlighting employees nominating each other for awards...


Hey

This is more a mathematical problem I guess rather than a how to do it in VBA. I'm trying to write a simple macro that will allow me to highlight people who are nominating each other for small awards. Basically I get a copy of the datafeed from the server and run it in Excel on a monthly basis. I have a Nominator ID and a Recipient ID along with numerous other information and I want to be able to find out if anyone is continuously nominating each other? Been playing about with IF statements and loops but having no joy at all :( Just not mathematically minded enough!

Nominator Recip Amount Date Reason etc...
Scott Louise $20 12/01/06 .......
Louise Scott $20 1/01/06
Jack Jones $20

Any ideas as to the best approach? Any help as always is greatly appreciated!

Scott

Scott Boyd

Hello Scott,

Are you interested in who has nominated who the most number of times, or who has made the most nominations regardless of who they nominated.

If it is the latter, then just count the number of occurrences of each name in Nominator column.

If the former then you have to match pairs, ie Scott-Louise. See how many time Nom Col is Scott AND Recip Col is Louise or in pseudo code:

IF NomCol="Scott" AND RecipCol="Louise" THEN

scotLouiseCount=scotLouiseCount + 1

END IF

This is is only my first thought, I am sure there are other ways.

Chas

ChasAA

Hi thanks for the reply. Yes thats got me thinking the right way now. I am trying to highlight if people are nominating each other i.e. scott nominates louise for an award then louise nominates scott for an award, do you know what i'm saying? I can't get my head around how it can be done!

Any ideas? :)

Scott Boyd
reply 3

You can use google to search for other answers

 

More Articles

• How to convert excel file to .DAT file?
• RunTime Error '13' Type Mismatch
• Bound Object frame manipulation in VBA
• Linking Infopath Toolbar Buttons to VBScripts embedded in Templat...
• VBA tapi caller ID
• VBA and Access Noobie Questions
• SELECT syntax in VBA for retrieving information
• VB writing data to an Excel file
• Hide/unhide
• print out to .pdf or calling a macro with parameter
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• How can filter object ?
• VBA 6.4 now available on MSDN Subscription
• VBA: Timer event?
• VB6 XP Themes support. Solved! Source in
• excel formula
• Run-time error '1004' in import macro
• Odd or even and converting Decimal to bi
• User Input on Range Selection
• Tic Tac Toe Game
• Disabling enter and mouse click PPT navi
• How do I create and use 3D ranges in Exc
• Word 2002 VBA weird Find problem
• Outlook tasks - how can I see them?
• Restrict editing of activity based on da
• Copy Paste (VBA)

Hot Articles

• Assign Minimum and maximum values for a
• Acces functions in my ouwn services appl
• SendKeys from Excel
• Placing data in matrix
• calling a function and passing the name
• plz help to print label for the critical
• How do I avoid multiple instances of Excel
• Openening an Excel file from within Proj
• How do I write this!!
• Find worksheets starting with "xxxx
• VBA Excel: PivotTable Visibility and Piv
• ADO Recordset CursorType Property
• VBA Queston on Formatting Macro
• VBA Userform Control of multiple userfor
• Need help with a macro (not sure if corr

Recommend Articles

• Run-time error
• Convert UTC date to mm/dd/yyyy hh-mm-ss
• VBA macro from office 2000 excel does no
• Password question
• Calling procedures from a procedure
• VBA freeze
• Access data source question
• Accessing a subform control in MS Access
• SendKeys from Excel
• Saving all individual worksheets in a wo
• VB MACRO IN SHARED WORKBOOK(EXCEL)
• VB.Net to VBA?
• Help On Error GoTo
• Excel VBA help file gives answers in Ger
• Provider cannot be found its not correct