+ Reply to Thread
Results 1 to 4 of 4

Userform : add value according selcet column range : Solved by (nilem)

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

    Thumbs up Userform : add value according selcet column range : Solved by (nilem)

    hello evryone

    if i click CommandButton1 then

    pop a userform and

    if i type in texbox1 (d2:d10) = value = 5 then [result d2:d10=5]
    and
    i type in texbox2 (f2:f10) = value = 6 then [result f2:f10=6]
    and
    i type in texbox3 (h2:h10) = value = 7 then [result h2:h10=7]
    and
    i type in texbox4 (j2:j10) = value = 8 then [result j2:j10=8] and click "add" button the data enter is complete and clear the all filed by click "clear" button

    now next time the data enter after last value (like = Range("d:d" & Rows.Count).End(xlUp).Offset(1))
    if i type in texbox1 (d11:d21) = value = 1 then [result d11:d21=1]
    and
    i type in texbox2 (f11:f21) = value = 2 then [result f11:f21=2]
    and
    i type in texbox3 (h11:h21) = value = 3 then [result h11:h21=3]
    and
    i type in texbox4 (j11:j21) = value = 4 then [result j11:j21=4] and click "add" button the data enter is complete and clear the all filed by click "clear" button


    thanx a lot

    haroon2015
    sample
    Attached Files Attached Files
    Last edited by HaroonSid; 03-23-2014 at 06:16 AM. Reason: solved

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Userform : add value according selcet column range

    Hi haroon2015,
    try it
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Userform : add value according selcet column range

    Hello nilem

    i have done some changes in my userform

    Please Login or Register  to view this content.
    1 = In this form i want a clear button who cleared the data of form's text boxes ( "tb5", "tb6", "tb7", "tb8" )

    thanx

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

    Re: Userform : add value according selcet column range

    hello : nilem

    problem solved : 1 = In this form i want a clear button who cleared the data of form's text boxes ( "tb5", "tb6", "tb7", "tb8" )


    thanx alot for helping people

+ 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. Sheet range like "A1:A2" this range autometically assign my userform's text box
    By dmanivelan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2013, 07:32 AM
  2. Replies: 4
    Last Post: 07-19-2013, 04:35 AM
  3. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  4. Replies: 0
    Last Post: 11-15-2012, 12:29 PM
  5. [SOLVED] VBA: UserForm ListBox Column Headings RowSource = Named Range
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 02:21 AM

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