Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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!


+-------------------------------------------------------------------+
|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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number format TextBox? hoyos Excel Discussion (Misc queries) 2 November 8th 09 11:04 PM
TextBox Format grahammal Excel Discussion (Misc queries) 3 March 29th 06 01:35 PM
Textbox Format Paul Excel Programming 2 June 21st 05 10:27 AM
Format A TextBox For A Phone Number Minitman[_4_] Excel Programming 3 February 10th 05 09:12 AM
Format Textbox as % Todd Huttenstine[_2_] Excel Programming 2 December 15th 03 12:07 AM


All times are GMT +1. The time now is 04:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"