Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Userform using text boxes

Userform using text boxes

Scheduled Pinned Locked Moved Visual Basic
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EZ V
    wrote on last edited by
    #1

    Can anyone tell me how text can re-appear in the text box that was previously entered when the userform is re-opened. The way my code is written now. When you re-open the userform the text boxes are automatically cleared for new text to be entered. Please look at this code below: Private Sub cmdOK Click() If textbox1.TextLength > 0 Then ActiveSheet.Cells(5, 2).Value = textbox1.Text Unload UserForm1 Else MsgBox "You are required to enter text. Please enter it now.", vbCritical End If End Sub If you have any code examples, please share them with me. Thanks. I would really appreciate the help.

    N 1 Reply Last reply
    0
    • E EZ V

      Can anyone tell me how text can re-appear in the text box that was previously entered when the userform is re-opened. The way my code is written now. When you re-open the userform the text boxes are automatically cleared for new text to be entered. Please look at this code below: Private Sub cmdOK Click() If textbox1.TextLength > 0 Then ActiveSheet.Cells(5, 2).Value = textbox1.Text Unload UserForm1 Else MsgBox "You are required to enter text. Please enter it now.", vbCritical End If End Sub If you have any code examples, please share them with me. Thanks. I would really appreciate the help.

      N Offline
      N Offline
      Nadroj
      wrote on last edited by
      #2

      hmm.. sry to get ur hopes up. u prolly think iv got a solution, which i dont. ;P i dont know anything about these userforms your talking about. iv worked with vb6 windows apps, but not in vb.net. only console apps. i am prolly way off, but, couldnt u just make a hidden text box or label to store the previous forms' value? ------------------------ Jordan. III

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups