Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default text/number formating question

Everything on the sheet is formatted as text but all the text is
numbers. Treat everything as strings in the code.

Problem:

Looking for the string "29" in the range Buddies. A=29 where A is a
string variable. All of the range Buddies is formated as text although
it is all numbers.

Set Third = Buddies.Find(what:=A, lookat:=xlWhole) Doesn't find string A
Set Third = Buddies.Find(what:=Val(A), lookat:=xlWhole) DOES find string A

Why is this? I'm looking for a string "29" in a range of strings but can
only find it if I look for a value. It's confusing.



John
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
Can this be done??? Formating Question Bean Counter Excel Discussion (Misc queries) 2 October 15th 09 05:24 PM
Formating Question amik Excel Discussion (Misc queries) 1 June 8th 09 04:16 PM
Vlookup link to pivot - text/number question Owl Excel Discussion (Misc queries) 3 February 20th 09 12:58 PM
copying a cell and changing the formating from number to text Mark Gloves Excel Discussion (Misc queries) 3 June 22nd 07 01:51 AM
Formating question toot033 Excel Discussion (Misc queries) 2 August 9th 06 06:35 PM


All times are GMT +1. The time now is 08:20 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"