LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Audit function needed


Don't know your formats, so I will use a format of £#,##0.00;(£#,##0.00)

Dim cell As Range
Dim rng As Range

For Each cell In Selection
If Not IsEmpty(cell) Then
If IsNumeric(cell.Value) Then
If cell.NumberFormat < "£#,##0.00;(£#,##0.00)" Then
If rng Is Nothing Then
Set rng = cell
Else
Set rng = Union(rng, cell)
End If
End If
End If
End If
Next cell

If Not rng Is Nothing Then
rng.Select
End If

--
HTH

Bob Phillips

"bvm" wrote in message
...
In a multi-currency environment my staff keep mixing up currencies in
their spreadsheets e.g. subtracting costs in dollars from revenues in

Euros.

I would like to develop a macro that examines formulas in a spreadsheet
and looks for cells formatted in different currencies.

Some pointers on how to get started would be appreciated.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Formula Audit function Chuck Excel Discussion (Misc queries) 3 March 10th 08 07:38 AM
Help with time audit Mike Busch[_2_] Excel Discussion (Misc queries) 0 December 18th 07 03:21 PM
Audit Trail Pendelfin Excel Discussion (Misc queries) 1 January 23rd 06 03:04 PM
need help have audit and i'm going to get slaughtered unless dont think auditors deserveyourmoney guy Excel Worksheet Functions 4 May 24th 05 12:43 AM
Add "FIND LINKS" to EXCEL Audit function Ridgerunner_2 Excel Worksheet Functions 3 February 22nd 05 12:19 AM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"