Consulting

Results 1 to 3 of 3

Thread: [Help Please]Parsing parameters to event

  1. #1
    VBAX Newbie
    Joined
    Jun 2008
    Posts
    2
    Location

    Question [Help Please]Parsing parameters to event

    Please help me...

    I'm working in 2 form:

    UserForm1 contains button1, when we click button1 UserForm2 will be load and UserForm1 will be hide.

    UserForm2 contain RefEdit to select a range

    And if I Click the button "Ok" the UserForm2 will hide and UserForm1 will showed.

    I want the range value that have selected in UserForm2 is send to textbox in UserForm1.

    I cannot do that

    Please helpme Guy's...............



    Thank you

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Putting this in the userform2's command button routine should do it.
    [VBA]Private Sub cmbRangeTo1_Click()
    On Error Resume Next
    With Me.RefEdit1
    UserForm1.TextBox1.Text = CStr(Range(.Value).Range("a1").Value)
    End With
    Me.Hide
    UserForm1.Show
    On Error Goto 0
    End Sub[/VBA]

  3. #3
    VBAX Newbie
    Joined
    Jun 2008
    Posts
    2
    Location

    Thumbs up Thank You

    Thank you Mikericson... it's works.......

Posting Permissions

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