LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Number and Text issues

I have an .xls file that has a list of clients that I have filtered and
sorted. In column "A", there is a list of numbers, some that have preceeding
zeros and some that do not, but all of the numbers are of the same length.

I have created a macro in another .xlsm spreadsheet (driven by commandbutton
located on a userform) which allows the user to enter (via inputbox) a number
and it will search the .xls file and return to the userform the information
which is in the same row as the number entered by the client. This macro
takes all of the values in column "A" and converts it to text and then
searches.

Here is the issue that I am having:
if the value that it is searching for has the preceding zeros, it finds the
value EVERY time. If it starts with any other number, it does not find it
EVER.

I have tried manually manipulating the original file to make it work and I
noticed that all of the cells in column "A" that have preceding zeros have
the "little green triangle" in the corner for the error of number stored as
text, but the other numbers do not; however, if I manually click on any of
the cells in column "A" it shows it as text in the number format window on
the ribbon. While playing around, I went into the formula bar and
highlighted the number inside of the cell and hit the enter key-and that
changed it to the text format!

I am not sure what the issue is or what highlighting the information in the
formula bar does, but how would I write code to do that for every cell in
column "A"... or is there something that I am completely missing?

The code is messy (I am pretty new to writing) but I can post it if needed.


 
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/Text Issues Shane Excel Programming 1 January 11th 10 08:08 PM
TEXT issues Jafferi[_2_] Excel Discussion (Misc queries) 2 May 4th 09 05:46 AM
Access Excel Linked Text and Number Issues Scott Excel Discussion (Misc queries) 2 October 4th 05 09:24 PM
Issues with Word Wrapping in cells after a number of characters Jig Bhakta Excel Discussion (Misc queries) 3 May 5th 05 10:36 PM
Number Format Issues-Decimal Places EXCELNCBOY Excel Worksheet Functions 1 November 4th 04 10:41 PM


All times are GMT +1. The time now is 11:35 PM.

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"