Hello Experts,
WHen I tried to run below macro it throw errors , I apologies as I am newbie person in VBA, could you guys please tell me where am I going wrong here please ?
Below Code was meant for finding percentages figures and insert a min 100 percentage formula in it.
------------------------------------------------------------------------------------
Sub InsertMinPercent()
Dim ws As Worksheet
Dim k As Range
Dim s As String
For Each ws In ActiveWorkbook.Worksheets
s = k.Text
If Right(s, 1) = "%" Then
Application.Run "'QC Errors progress .xlsm'!MinHundred"
End If
Next ws
End Sub
[Sub MinHundred()
Dim R As Range
On Error Resume Next
For Each R In Selection.SpecialCells(xlCellTypeFormulas)
R.Formula = "=Min(" & Mid(R.Formula, 2) & ",""1")
Next R
End Sub]
WHen I tried to run below macro it throw errors , I apologies as I am newbie person in VBA, could you guys please tell me where am I going wrong here please ?
Below Code was meant for finding percentages figures and insert a min 100 percentage formula in it.
------------------------------------------------------------------------------------
Sub InsertMinPercent()
Dim ws As Worksheet
Dim k As Range
Dim s As String
For Each ws In ActiveWorkbook.Worksheets
s = k.Text
If Right(s, 1) = "%" Then
Application.Run "'QC Errors progress .xlsm'!MinHundred"
End If
Next ws
End Sub
[Sub MinHundred()
Dim R As Range
On Error Resume Next
For Each R In Selection.SpecialCells(xlCellTypeFormulas)
R.Formula = "=Min(" & Mid(R.Formula, 2) & ",""1")
Next R
End Sub]