Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

VBA Microsoft Programming Accessing Variables across slides

$
0
0

I am trying to access a variable from slide 2 in a later slide

in the slide 2 code I have declared the variable as public

  1. PublicUserNameAsString

then I have set the value of this inside my button click function

  1. PublicSubSaveName_Click()
  2. UserName=TextBox1.Value
  3. EndSub

I am trying to access the variable on a later slide by using

  1. Slide2.UserName

However I am having no luck, can anyone advise me on where I am going wrong?

Thank you in advance


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>