Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Selection" Code???
Hi, In my maco I current have a certain set of numbers selected. Is ther any code to expand the selection to the cells in the two columns to th left of this selection? i.e. if cells C1 to H4 were filled, but want A to H4 selected, is this possible? Also, this was just an example, don't want the code to specifically use these cells, just in genera how to select the two columns that exist in front of my selection Thanks -- elaye ----------------------------------------------------------------------- elayem's Profile: http://www.excelforum.com/member.php...fo&userid=1534 View this thread: http://www.excelforum.com/showthread.php?threadid=27015 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Selection" Code???
Hi elayem
You can try this Selection.Offset(, -2).Resize(, Selection.Columns.Count + 2).Select -- Regards Ron de Bruin http://www.rondebruin.nl "elayem" wrote in message ... Hi, In my maco I current have a certain set of numbers selected. Is there any code to expand the selection to the cells in the two columns to the left of this selection? i.e. if cells C1 to H4 were filled, but want A1 to H4 selected, is this possible? Also, this was just an example, I don't want the code to specifically use these cells, just in general how to select the two columns that exist in front of my selection. Thanks. -- elayem ------------------------------------------------------------------------ elayem's Profile: http://www.excelforum.com/member.php...o&userid=15344 View this thread: http://www.excelforum.com/showthread...hreadid=270152 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"Center across selection" rather than "Merge cells" | Excel Discussion (Misc queries) | |||
VB Script: Code for "Sheets in selection" | Excel Discussion (Misc queries) | |||
Icon for "Wrap" and for "Centre Across Selection" | Excel Worksheet Functions | |||
Can you "duplicate" "copy" listboxes and code to multiple cells? | Excel Programming | |||
Looking for VB code to test for "RING" , "BUSY" disconnects or other signals | Excel Programming |