ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Duplicate Values on Multipage form (https://www.excelbanter.com/excel-programming/326245-duplicate-values-multipage-form.html)

Robbyn

Duplicate Values on Multipage form
 
Good morning,

I'm using a multipage form - each page representing a different day of the
week(Day1 - Day5). Each page contains the same textboxes, comboboxes, and
checkboxes. Many times whatever the user inputs for Day 1, will work with
Day 2 or Day 3. I would like to simplify user input by duplicating whatever
is inputted into Day 1 into the rest of the pages. The user then has the
option to change values as needed on the rest of the pages (days). Is this
possible?

Robbyn

Bob Phillips[_6_]

Duplicate Values on Multipage form
 
Robbyn,

Should be. Just copy across as entered, something like

Private Sub TextBox1_Change()
With Me.MultiPage1
.Pages(1).TextBox2.Text = TextBox1.Text
.Pages(2).TextBox3.Text = TextBox1.Text
End With
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Robbyn" wrote in message
...
Good morning,

I'm using a multipage form - each page representing a different day of the
week(Day1 - Day5). Each page contains the same textboxes, comboboxes, and
checkboxes. Many times whatever the user inputs for Day 1, will work with
Day 2 or Day 3. I would like to simplify user input by duplicating

whatever
is inputted into Day 1 into the rest of the pages. The user then has the
option to change values as needed on the rest of the pages (days). Is

this
possible?

Robbyn




Robbyn

Duplicate Values on Multipage form
 
Thanks again Bob. A simple solution to what I thought was a difficult
problem.
Hope you have a Happy Easter!

"Bob Phillips" wrote:

Robbyn,

Should be. Just copy across as entered, something like

Private Sub TextBox1_Change()
With Me.MultiPage1
.Pages(1).TextBox2.Text = TextBox1.Text
.Pages(2).TextBox3.Text = TextBox1.Text
End With
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Robbyn" wrote in message
...
Good morning,

I'm using a multipage form - each page representing a different day of the
week(Day1 - Day5). Each page contains the same textboxes, comboboxes, and
checkboxes. Many times whatever the user inputs for Day 1, will work with
Day 2 or Day 3. I would like to simplify user input by duplicating

whatever
is inputted into Day 1 into the rest of the pages. The user then has the
option to change values as needed on the rest of the pages (days). Is

this
possible?

Robbyn





Rob Bovey

Duplicate Values on Multipage form
 
"Robbyn" wrote in message
...
I'm using a multipage form - each page representing a different day of the
week(Day1 - Day5). Each page contains the same textboxes, comboboxes, and
checkboxes. Many times whatever the user inputs for Day 1, will work with
Day 2 or Day 3. I would like to simplify user input by duplicating
whatever
is inputted into Day 1 into the rest of the pages. The user then has the
option to change values as needed on the rest of the pages (days). Is
this
possible?


Hi Robbyn,

Another option you should look into when designing this type of UserForm
is the TabStrip control. This control allows you to display tabs just like
the MultiPage control, but rather than having a duplicate set of controls
for each tab, you use exactly the same controls for every tab. As the user
clicks different tabs, you trap the TabStrip_Change event and move data in
and out of the controls as appropriate for the current value of the selected
tab. Any array of a User-defined Type that has a member for each control
makes this a very simple operation.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm




All times are GMT +1. The time now is 07:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com