Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Thelma Murray   on Jan 19 In MS Office Category.

  
Question Answered By: Anthony Smith   on Jan 19

You can define a "Public" variable in the definitions section above the subs in
a module. It
is then available to all subs and functions.

Like this
Public strName As String

Sub DoWhatever()
...
strName = YourCodeHere
...
End Sub

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on trouble using globals Or get search suggestion and latest updates.


Tagged: