i've put that code in here, do i have to have it after i activate the sheet?
Code:
'... find out how many sheets there are in the contract
iSheetCount = Worksheets.Count
'... the main loop
'... will loop through all the sheets
For i = 1 To iSheetCount
Call DeleteRulelessSheets
'... variable used to output what values were not found during the
'... colour mapping process, this only accounts for when NONE of
'... the variables inside the template file are found
sNotFound = ""
'... get the values of the current worksheet
Worksheets(i).Activate
iTotalRows = ActiveSheet.UsedRange.Rows.Count
iTotalCols = ActiveSheet.UsedRange.Columns.Count
www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt