title: How do you control a button inside a multipage in excel VBA
body: <p>I have a multipage, I was successfully able to copy elements of the first page which is my reference page to new pages which is created dynamically.</p>
  
  <p>My question is, how do I set a commandbutton's actions inside a page in a multipage control?
  My goal is to click on the button from any page then pops up another form.</p>
  
  <p>How do I do this?
  It's pretty hard to adjust from Android to VB. I really appreciate any help from you guys.</p>
  
  <p>This is my code in cloning pages.</p>
  
  <pre><code>i = 0
  MultiPage1.Pages.Add
  MultiPage1.Pages(i).Controls.Copy
  i = i + 1
  MultiPage1.Pages(i).Paste
  For Each ctl In Me.MultiPage1.Pages(i).Controls
       If TypeOf ctl Is MSForms.Label Then
             '~~~ code omitted
             Select Case ctl.Tag
                  Case "startTime"
                          ctl.Caption = "4:00pm"
             End Select
       End If
  Next
  </code></pre>
  
  <p>this is how it's going to look like.
  <img src="https://i.stack.imgur.com/4tJzf.png" alt="enter image description here"></p>
  
  <p>the button will concatenate all strings inside the page. the concatenated string will be shown on another userform.</p>