I want to thank Bill for helping me with this, it works very well. However, I have this error come up when I update where the concatenations come from:
I found a post that deals with that problem but I'm unable to implement it correctly:
http://www.mrexcel.com/forum/showth...le+to+set+the+Size+property+of+the+Font+class
This is what I've tried:
When I add the Unprotect/Protect I get a Compile error: Invalid outside procedure.
Am I using this idea Unprotect/Protect correctly or is there another way to solve the first or second error?
I believe it is because I have the sheets protected.run time error 1004 excel macro "unable to set the Size property of the Font class"
I found a post that deals with that problem but I'm unable to implement it correctly:
http://www.mrexcel.com/forum/showth...le+to+set+the+Size+property+of+the+Font+class
This is what I've tried:
Code:
Sheets("your_sheet_name").Unprotect Password:="your_password"
Private Sub Worksheet_Calculate()
For Each cell In Range("B3:H22")
Select Case Len(cell.Value)
Case 0 To 30
cell.Font.Size = 11
Case 31 To 40
cell.Font.Size = 9
Case 41 To 50
cell.Font.Size = 8
Case 51 To 60
cell.Font.Size = 7
End Select
Next cell
End Sub
Sheets("your_sheet_name").Protect Password:="your_password"
When I add the Unprotect/Protect I get a Compile error: Invalid outside procedure.
Am I using this idea Unprotect/Protect correctly or is there another way to solve the first or second error?