+ Reply to Thread
Results 1 to 2 of 2

VBA Multipage Userform.: transfer textbox fields from a multipage userform to a cell

  1. #1
    Registered User
    Join Date
    12-31-2019
    Location
    Centenial, Colorado
    MS-Off Ver
    2016
    Posts
    1

    VBA Multipage Userform.: transfer textbox fields from a multipage userform to a cell

    HI! So i'm working through a userform's coding and running into some odd issues. I could absolutely use the advice of a more adultier adult.

    Issue 1: Unable to transfer textbox fields from a multipage userform to a cell I've tried
    Me.ObjectName.Text
    Tabname.Objectname.Text
    and just ObjectName.Text

    Forum 1.JPG

    PHP Code: 
    Private Sub CommandButton29_Click()

    Dim ForemanJnameJnumberDDate As String


    Sheets
    ("Device").Select

    Worksheets
    ("device").Cells("B1").Value Me.Jname.Text
    Worksheets
    ("device").Cells("B2").Value Introduction.Jnum.Text
    Worksheets
    ("device").Cells("B3").Value Introduction.Foreman.Text
    Worksheets
    ("device").Cells("B5").Value Introduction.DDate.Text



    End Sub 
    Issue 2: This one is a bit more complicated but I'm working out a sequenced code that will look at each checkbox inside of the userform, and if it is not checked, the code will hide a column with a corresponding marker. IE the checkbox is named A1 and there is a column marker of A1 that would be hidden if the checkbox is not checked. This is as far as i've been able to get so far but i'm unsure if i have to reference the page in the multipage before referencing the checkbox.

    PHP Code: 
        For Each ctrl In Recept1.Controls
    If TypeOf ctrl Is MSForms.CheckBox Then
        
        
    If chkbox False Then
    Codename 
    chkbox.Name

    Range
    ("D6").Select
        
    Cells
    .Find(What:=CodenameAfter:=ActiveCellLookIn:=xlValuesLookAt:= _
            xlwhole
    SearchOrder:=xlByRowsSearchDirection:=xlNextMatchCase:=False _
            
    SearchFormat:=False).Activate
        Selection
    .EntireColumn.Hidden True
        
        End 
    If
        
    End If
    Next ctrl

    Next Ppage 

    If needed i can share the current workbook as well but any input would be greatly appreciated!!
    Last edited by AliGW; 12-31-2019 at 01:25 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,858

    Re: VBA Multipage Userform.: transfer textbox fields from a multipage userform to a cell

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. I have done it for you today, as you are new.)

    Instructions at the top of the page telling you how to attach your workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Userform upload data very very slowly to sheets vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-22-2014, 06:35 PM
  2. Help Populating Textboxes in Userform, With Multipage Userform.
    By mdmorgan24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 05:29 PM
  3. Imported UserForm runs slowly
    By pnmng49 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2011, 10:39 AM
  4. Userform Multipage
    By techteam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2011, 06:36 AM
  5. Multipage on a userform
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2007, 12:32 PM
  6. Userform - Multipage
    By marcospaterson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2007, 06:33 AM
  7. Multipage on a userform
    By browie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1