5. Procedure

Sub Procedure

This's the result after you had run the macros below.










Sub Mysubroutie()

Dim i As Integer
While i < 10
i = i + 1
Range("D" & i).Select
ActiveCell.Value = "Column" & i
Wend

Call Msgme("Total Count is " & i)

End Sub
Sub Msgme(ByVal str As String)
    MsgBox (str)
End Sub

Comments

Popular posts from this blog

Excel VBA connect SAPRFC

How to Create Sap Gui Scripting

Simple macros to re-arrange column into upload format