LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Keep leading zeros in a string array

When you say that when you load the array the value looks like 00030, are you
loading an integer formatted to show leading zeros or are you loading a
string? Also when you say that you check later on are you outputting the data
to a cell where implicit conversion may be happening or are you placing a
watch on the variable and checking it's contents? Another question is you say
that it is an array of strings. Is it declared as an array of strings or is
it declared as variant? Is it ever passed to a sub where the argument is
declared either as variant (or not declared which is implicitly variant)?
--
HTH...

Jim Thomlinson


"quartz" wrote:

When I copy cell contents that looks like "00030" into a string array, then
later check the array contents it looks like: "30". I need to keep the
leading zeros in the variable. Anyone have a quick and easy way to do this?


 
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
Array formula to Identify Leading Zeros. Commish Excel Discussion (Misc queries) 2 December 22nd 09 04:13 PM
Leading zeros mary Excel Discussion (Misc queries) 1 January 18th 06 01:56 PM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
Leading zeros JC Excel Discussion (Misc queries) 9 February 1st 05 02:33 PM
Removing Leading Zeros from a String MARTY Excel Programming 16 July 2nd 04 02:11 PM


All times are GMT +1. The time now is 09:32 AM.

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

About Us

"It's about Microsoft Excel"