Chirag R Raval
Member
Dear Sir,
Run Time Error : 13
Type Mismatch
on - cell.Value = cell.Value * cell.Value
This type of error mostly face in any module
which have For Each next loop
if firm method available as a how this type of loop handle
I can change it in many modules
to work smoothly...
please help
Chirag Ravel
Run Time Error : 13
Type Mismatch
on - cell.Value = cell.Value * cell.Value
Code:
Sub RangeMultiplyer_Click()
Dim rng As range
Dim cell As range
Set rng = range("A1:A10")
'you can Set rng = Selection
For Each cell In rng
cell.Value = cell.Value * cell.Value
Next cell
End Sub
This type of error mostly face in any module
which have For Each next loop
if firm method available as a how this type of loop handle
I can change it in many modules
to work smoothly...
please help
Chirag Ravel