DaveRadford
Board Regular
- Joined
- Feb 18, 2010
- Messages
- 63
Afternoon All,
I ahvea tricky one, i have data that i am sorting and then copying in to a field that is used as a named range. Im running the code below in order to change the data from TEXT ot numbers. I know that the data is AlphaNumeric but i would 3 digit numbers for Example "10" would be displayed as "010"
The issue that im having is that for some unknown reason the form that displays the information does contain all of the data in the output. If i checked the list within the named range its all there only when i click in to the named range i can see its only selecting half the data, and its never the same amount, but always misses some.
my named range formula is:
=OFFSET(WSList!$A$2:$A$301,0,0,COUNTIF(WSList!$A$2:$A$150,">"""),2)
I use this so that it will only display the data no blanks.
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True
Selection.NumberFormat = "000"
I'm a little confused as to why it would only select part of it, and to clarify the named range doesnt change it stays correct but i can see in the dotted lines that its decided to prematurely stop.
Help appreciated.
Many thanks,
Dave
I ahvea tricky one, i have data that i am sorting and then copying in to a field that is used as a named range. Im running the code below in order to change the data from TEXT ot numbers. I know that the data is AlphaNumeric but i would 3 digit numbers for Example "10" would be displayed as "010"
The issue that im having is that for some unknown reason the form that displays the information does contain all of the data in the output. If i checked the list within the named range its all there only when i click in to the named range i can see its only selecting half the data, and its never the same amount, but always misses some.
my named range formula is:
=OFFSET(WSList!$A$2:$A$301,0,0,COUNTIF(WSList!$A$2:$A$150,">"""),2)
I use this so that it will only display the data no blanks.
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True
Selection.NumberFormat = "000"
I'm a little confused as to why it would only select part of it, and to clarify the named range doesnt change it stays correct but i can see in the dotted lines that its decided to prematurely stop.
Help appreciated.
Many thanks,
Dave