+ Reply to Thread
Results 1 to 7 of 7

UserFrom : Select Range And Show In Text Box : Solved by : Bernie Deitrick

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Thumbs up UserFrom : Select Range And Show In Text Box : Solved by : Bernie Deitrick

    hello evryone

    I M Using A UserForm To Select Range Select

    In UserForm i have three Textboxes

    1st Textbox's value is set = N:N

    2nd Textbox's value is set = O:O

    3rd Textbox's value is set = P:P

    I Need If I set 1st TextBox's Value = N3:N15 then

    Should be auto value of 2ND textbox = O3:815
    AND
    Should be auto value of 3rd texbox = P3:P15

    thanx
    Last edited by HaroonSid; 03-26-2014 at 05:01 AM. Reason: solved

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: UserFrom : Select Range And Show In Text Box

    In the change event of TextBox1:

    Private Sub TextBox1_Change()
    On Error Resume Next
    Me.TextBox2.Text = Range(Me.TextBox1.Text).Offset(0, 1).Address(False, False)
    Me.TextBox3.Text = Range(Me.TextBox1.Text).Offset(0, 2).Address(False, False)
    End Sub
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: UserFrom : Select Range And Show In Text Box

    Bernie Deitrick

    this is not what i want


    see the sample below
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: UserFrom : Select Range And Show In Text Box

    What do you want? Maybe??

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: UserFrom : Select Range And Show In Text Box

    hello Bernie Deitrick

    there is an error

    Compile error:
    Syntax error

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: UserFrom : Select Range And Show In Text Box

    Left off a paren:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: UserFrom : Select Range And Show In Text Box

    hello Bernie Deitrick


    Working fine my dear

    that it! what i want

    thanx a lot
    haroon2015

+ 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. VBA to show grey text in a range of blank cells
    By B81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2013, 03:05 PM
  2. [SOLVED] Is there a code to select a Range from WS based on Text
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-28-2012, 10:41 PM
  3. Select a text in a range of cells
    By pcal72 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2012, 12:30 PM
  4. Select data within a range and convert to text
    By bluealex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2011, 09:19 AM
  5. [SOLVED] how to select range when no. of rows depends from text place ??
    By Palka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2005, 04:06 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