Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting text only
Hi, I'm a big newbie, and I'm sure there's an easy way to do this. First, here is the area in my vba code that I am having a problem with: Selection.AutoFilter Selection.AutoFilter Field:=1, Criteria1:="=*" & v(i) & "*" Selection.AutoFilter Field:=4, Criteria1:="20040630", Operator:=xlOr, Criteria2:="0" Range("B1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy It works fine as long as there is text, however, when the coloumns are blank, it copies the entire column, including the blank rows. Since I am trying to paste whatever I copy into another worksheet, how can I make it so that it only copies the text within that area that I am trying to copy. Thanks in advance. -- Sethaholic ------------------------------------------------------------------------ Sethaholic's Profile: http://www.excelforum.com/member.php...o&userid=25113 View this thread: http://www.excelforum.com/showthread...hreadid=386935 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
selecting text area | Excel Worksheet Functions | |||
selecting certain text in long row of text | Excel Worksheet Functions | |||
Selecting text | Excel Programming | |||
Selecting text in cells & half of the Selected Text to be underLine | Excel Programming | |||
Selecting ranges with a text box | Excel Programming |