Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Magenta Ricci   on Nov 02 In MS Office Category.

  
Question Answered By: Aalia Arain   on Nov 02

You probably want something like this...


Sub Test()
Dim x as string

X = "Something"
Call Test2(X)'Pass value to next procedure
End Sub

Sub Test2(str as String)'receiving variable  cannot be same name as
calling procedure, and must be same dimension. i.e. passing string to
string.

Write code here!

End Sub

Share: 

 

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

 
Didn't find what you were looking for? Find more on how to preserve variable value between subroutine calls? Or get search suggestion and latest updates.


Tagged: