ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   selecting adjacent cells (https://www.excelbanter.com/new-users-excel/58171-selecting-adjacent-cells.html)

wfcmark

selecting adjacent cells
 
Hi,

new(ish) to excel and to this site (but have searched previous posts for help
regularly).

Anyway, how do I select a cell, and then when hitting a button, automatically select the next 2 cells in the row for pasting.

I am okay with the button, recording macros etc, but when I try to do that,
it just shows select range in the VBA. What I need (I think!) is to know how to extend selection by 2 cells.

The reason is so a selection is only one click and not several...

Hope this is clear!

Many thanks, Mark

Chip Pearson

selecting adjacent cells
 
Mark,

Try something like


"wfcmark" wrote in message
...

Hi,

new(ish) to excel and to this site (but have searched previous
posts
for help
regularly).

Anyway, how do I select a cell, and then when hitting a button,
automatically select the next 2 cells in the row for pasting.

I am okay with the button, recording macros etc, but when I try
to do
that,
it just shows select range in the VBA. What I need (I think!)
is to
know how to extend selection by 2 cells.

The reason is so a selection is only one click and not
several...

Hope this is clear!

Many thanks, Mark


--
wfcmark




Chip Pearson

selecting adjacent cells
 
Mark,

Try something like

ActiveCell.Resize(, 3).Select



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"wfcmark" wrote in message
...

Hi,

new(ish) to excel and to this site (but have searched previous
posts
for help
regularly).

Anyway, how do I select a cell, and then when hitting a button,
automatically select the next 2 cells in the row for pasting.

I am okay with the button, recording macros etc, but when I try
to do
that,
it just shows select range in the VBA. What I need (I think!)
is to
know how to extend selection by 2 cells.

The reason is so a selection is only one click and not
several...

Hope this is clear!

Many thanks, Mark


--
wfcmark




Gord Dibben

selecting adjacent cells
 
Mark

ActiveCell.Resize(3).Select to grab 3 cells in one column.

ActiveCell.Resize(3, 3).Select to grab 9 cells in 3 columns.


Gord Dibben Excel MVP

On Thu, 1 Dec 2005 16:59:49 +0000, wfcmark
wrote:


Hi,

new(ish) to excel and to this site (but have searched previous posts
for help
regularly).

Anyway, how do I select a cell, and then when hitting a button,
automatically select the next 2 cells in the row for pasting.

I am okay with the button, recording macros etc, but when I try to do
that,
it just shows select range in the VBA. What I need (I think!) is to
know how to extend selection by 2 cells.

The reason is so a selection is only one click and not several...

Hope this is clear!

Many thanks, Mark



wfcmark

Thanks Guys - exactly what I wanted...

Cheers,

Mark



All times are GMT +1. The time now is 06:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com