This code is in Form1 :-
Private Sub Command1_Click()
Call txtSend("Example 1", Form1)
End Sub
Private Sub Command2_Click()
Call txtSend("Example 2", Form1)
End Sub
This code is in Module1 :-
Function txtSend(TextToSend As String, f As Form)
With f
.Text1.LinkTopic = "Excel|Sheet1"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.