Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
When you select a range with a macro
Hello,
When you select a range with a macro, via End xldown etc... I would like to select this range minus 1 column, how is this possbiel in excell Regards Patrick |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
When you select a range with a macro
Patrick,
Use Resize. Assuming that you have set the selected range to a variable called tbl, this will cut back 1 column tbl.Resize(tbl.Rows.Count, _ tbl.Columns.Count - 1).Select -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Patrick" wrote in message . be... Hello, When you select a range with a macro, via End xldown etc... I would like to select this range minus 1 column, how is this possbiel in excell Regards Patrick |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
When you select a range with a macro
DIM Cell as Range
SET Cell = Range("B65000").End(xlUp).Offset(0,-1) Patrick Molloy Microsoft Excel MVP -----Original Message----- Hello, When you select a range with a macro, via End xldown etc... I would like to select this range minus 1 column, how is this possbiel in excell Regards Patrick . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select range in macro | Excel Discussion (Misc queries) | |||
Select range then copy rows macro | Excel Discussion (Misc queries) | |||
How do I select a range using a macro? | Excel Discussion (Misc queries) | |||
Using macro to select a range | Excel Worksheet Functions | |||
select a range in a macro | Excel Discussion (Misc queries) |