Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() i have an array of strings. i'm trying to make a function that will return the arry without blank entries. input would be: "text"/"words"/""/"more words"/"" result woud be: "text"/"words"/"more words" -- TheIrishThug ------------------------------------------------------------------------ TheIrishThug's Profile: http://www.excelforum.com/member.php...o&userid=29682 View this thread: http://www.excelforum.com/showthread...hreadid=494693 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
j = lbound(ar) - 1
for i = lbound(ar) to ubound(ar) if ar(i) < "" then j = j + 1 ar(j) = ar(i) end if Next Redim Preserve ar(lbound(ar) to j) -- Regards, Tom Ogilvy "TheIrishThug" wrote in message news:TheIrishThug.20b0wb_1135024501.6801@excelforu m-nospam.com... i have an array of strings. i'm trying to make a function that will return the arry without blank entries. input would be: "text"/"words"/""/"more words"/"" result woud be: "text"/"words"/"more words" -- TheIrishThug ------------------------------------------------------------------------ TheIrishThug's Profile: http://www.excelforum.com/member.php...o&userid=29682 View this thread: http://www.excelforum.com/showthread...hreadid=494693 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() thanks Tom Tom Ogilvy Wrote: j = lbound(ar) - 1 for i = lbound(ar) to ubound(ar) if ar(i) < "" then j = j + 1 ar(j) = ar(i) end if Next Redim Preserve ar(lbound(ar) to j) -- Regards, Tom Ogilvy "TheIrishThug" wrote in message news:TheIrishThug.20b0wb_1135024501.6801@excelforu m-nospam.com... i have an array of strings. i'm trying to make a function that will return the arry without blank entries. input would be: "text"/"words"/""/"more words"/"" result woud be: "text"/"words"/"more words" -- TheIrishThug ------------------------------------------------------------------------ TheIrishThug's Profile: http://www.excelforum.com/member.php...o&userid=29682 View this thread: http://www.excelforum.com/showthread...hreadid=494693 -- TheIrishThug ------------------------------------------------------------------------ TheIrishThug's Profile: http://www.excelforum.com/member.php...o&userid=29682 View this thread: http://www.excelforum.com/showthread...hreadid=494693 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
removing duplicate entries | Excel Discussion (Misc queries) | |||
SPREADSHEET SUMMARY MACRO REMOVING BLANK ENTRIES | New Users to Excel | |||
Removing duplicate entries. | Excel Discussion (Misc queries) | |||
Copying and pasting a worksheet to a blank and removing blank rows | Excel Programming | |||
Removing duplicate entries | Excel Programming |