السيد الفاضل
وجدت هذه الأكواد من فترة ولكن أريد شرح لها
وهل يمكن الإستفادة منها
Sub WhichLibrary()
'Excel's Round function
MsgBox Application.WorksheetFunction.Round(10.2356, 2)
'VBA's Round function
MsgBox Round(10.2356, 2)
End Sub
Sub StringExample1()
Dim strString As String
strString = "Microsoft Excel VBA"
'Returns 17 (17th character starting from first character)
MsgBox InStr(1, strString, "V", vbTextCompare)
'Returns 7 (7th character from left starting ‘at the sixth position)
MsgBox InStr(6, strString, "o", vbTextCompare)
End Sub
Sub StrngExample2()
MsgBox Format(12.5 * 1.175, "£0.00")
End Sub