Multipage Userform

L

Legacy 436357

Guest
Hi,

I have a table that stores data. It has too many fields to fit on a userform. My question can a multipage form allocate the data to the same row in the table?

Thank you
 
Last edited by a moderator:

Some videos you may like

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,208
Office Version
2007
Platform
Windows
My question can a multipage form allocate the data to the same row in the table?
The answer is yes

Each textbox or control is unique, no matter what page the control is in, you simply refer to the textbox.

ie.

Texbox1 is on page1.
Textbox17 is on page2.


When you pass the data to the sheet you use this:

Code:
Private Sub CommandButton1_Click()
  Dim lr As Long
  lr = Range("A" & Rows.Count).End(xlUp).Row + 1
  Range("A" & lr).Value = TextBox1.Value
  Range("M" & lr).Value = [COLOR=#0000ff]TextBox17[/COLOR].Value
End Sub



 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,102,678
Messages
5,488,222
Members
407,632
Latest member
varunwalla

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top