Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting an adjacent column
Hi,
I have two columns of data, the first column has data in every cell where as the second has some blank cells. Under normal circumstances the commands Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select select these two columns quite successfully. However if the first cell in the second column is blank e.g. MDE No. Workgroup 705433605 705433682 705433709 705433717 705433719 705433754 705433755 705433757 705433762 10-JIC5D 705433833 705434007 10-JIC5D then the selection goes all the way to the last column in the sheet. How can I select just the adjacent column in this case? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting an adjacent column
Range(Selection,Selection.End(xlDown)).Resize(,2). Select
-- Charles Chickering "A good example is twice the value of good advice." " wrote: Hi, I have two columns of data, the first column has data in every cell where as the second has some blank cells. Under normal circumstances the commands Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select select these two columns quite successfully. However if the first cell in the second column is blank e.g. MDE No. Workgroup 705433605 705433682 705433709 705433717 705433719 705433754 705433755 705433757 705433762 10-JIC5D 705433833 705434007 10-JIC5D then the selection goes all the way to the last column in the sheet. How can I select just the adjacent column in this case? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Selecting non-adjacent data | Excel Discussion (Misc queries) | |||
When data match, copy adjacent value to adjacent column | Excel Worksheet Functions | |||
summing values from adjacent column with refrence from adjacent column | Excel Discussion (Misc queries) | |||
selecting adjacent cells | Excel Programming | |||
Selecting non-adjacent rows | Excel Programming |