J
jowatkins
Hi guys,
i've got the following bit of code to cycle through the sheets of
workbook and calculate the total vlaues for each column and then plac
the value in the corresponding cells on the master sheet. The code i
simple but I can't see why it won't yake values such as 0.5 int
account. Even changing the format to increase the numbers after th
decimal place has no effect.
For Each sheet In sheetNames()
If sheet <> "" Then
'cellTotal = 0
Set currSheet = baseBook.Sheets(sheet)
currCellValue = currSheet.Range(cellAddress).Value
cellTotal = cellTotal + currCellValue
'place cellTotal into cell in month sheet
monthSheet.Range(cellAddress).Value = cellTotal
If cellTotal > 0 Then
monthSheet.Range(cellAddress).Interior.Color = RGB(200
200, 200)
End If
End If
Next
any ideas?
Cheers, J
i've got the following bit of code to cycle through the sheets of
workbook and calculate the total vlaues for each column and then plac
the value in the corresponding cells on the master sheet. The code i
simple but I can't see why it won't yake values such as 0.5 int
account. Even changing the format to increase the numbers after th
decimal place has no effect.
For Each sheet In sheetNames()
If sheet <> "" Then
'cellTotal = 0
Set currSheet = baseBook.Sheets(sheet)
currCellValue = currSheet.Range(cellAddress).Value
cellTotal = cellTotal + currCellValue
'place cellTotal into cell in month sheet
monthSheet.Range(cellAddress).Value = cellTotal
If cellTotal > 0 Then
monthSheet.Range(cellAddress).Interior.Color = RGB(200
200, 200)
End If
End If
Next
any ideas?
Cheers, J