Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
How do I select multiple cells using macro. I tried the following and it selects only the last cell starta.Offset(i, j).Select starta.Offset(i + 1, j).Select starta.Offset(i + 2, j).Select Tell me how can i correct this macro code. Thanks Shanu |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 6, 11:28 am, sharmashanu wrote:
Hi All How do I select multiple cells using macro. I tried the following and it selects only the last cell starta.Offset(i, j).Select starta.Offset(i + 1, j).Select starta.Offset(i + 2, j).Select Tell me how can i correct this macro code. Thanks Shanu Range("A1:D12").select meg99 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For any three cells you can always use UNION()
UNION(starta.Offset(i, j), starta.Offset(i + 1, j), starta.Offset(i + 2, j)).Select -- Gary''s Student - gsnu2007a "sharmashanu" wrote: Hi All How do I select multiple cells using macro. I tried the following and it selects only the last cell starta.Offset(i, j).Select starta.Offset(i + 1, j).Select starta.Offset(i + 2, j).Select Tell me how can i correct this macro code. Thanks Shanu |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Gary
It worked thanks. Thanks for teaching me new function. Shanu |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select multiple adjacent cells of multiple cells without selecting | New Users to Excel | |||
Select multiple adjacent cells of multiple cells without selecting | Excel Worksheet Functions | |||
trying to select multiple cells | New Users to Excel | |||
Why aren't my cells highlighted when I select multiple cells? | Setting up and Configuration of Excel | |||
select multiple cells | Excel Programming |