+ Reply to Thread
Results 1 to 2 of 2

i cant format textbox as number!

  1. #1
    Registered User
    Join Date
    02-25-2005
    Posts
    38

    i cant format textbox as number!

    file is simple
    i want to sort the data given particular criteria

    from start menu i choose top
    than i choose greater than
    then to the text box i write 4

    but the code recognize the 4 as "4" (text)
    so hide all the rows
    (but i want hide the row if it is less than 4, or show if it is 4 or above)

    please hlp i am not going any further!
    Attached Files Attached Files

  2. #2
    Toppers
    Guest

    RE: i cant format textbox as number!

    Hi,

    This works for me:

    If Cells(b, kolonsayisi).Value <= CInt(UserForm1.TextBox1.Value) Then
    Rows(b).EntireRow.Hidden = True


    HTH

    "barkiny" wrote:

    >
    > file is simple
    > i want to sort the data given particular criteria
    >
    > from start menu i choose top
    > than i choose greater than
    > then to the text box i write 4
    >
    > but the code recognize the 4 as "4" (text)
    > so hide all the rows
    > (but i want hide the row if it is less than 4, or show if it is 4
    > or above)
    >
    > please hlp i am not going any further!
    >
    >
    > +-------------------------------------------------------------------+
    > |Filename: dnm.zip |
    > |Download: http://www.excelforum.com/attachment.php?postid=3612 |
    > +-------------------------------------------------------------------+
    >
    > --
    > barkiny
    > ------------------------------------------------------------------------
    > barkiny's Profile: http://www.excelforum.com/member.php...o&userid=20397
    > View this thread: http://www.excelforum.com/showthread...hreadid=389184
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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