ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro {r 1} command in lotus (https://www.excelbanter.com/excel-programming/339940-macro-%7Br-1%7D-command-lotus.html)

Ed

macro {r 1} command in lotus
 
Lotus had a command that allowed you to move the cursor within a macro. The
comand was {r 5} which would move the cursor -right 5- from the current
location. Excell seems to record the keystroke movement into a specific cell
reference within the macro. I see you can do a similar command with
"Selection.End(xlDown)" but I want to move a defined # of cells. not to the
end of a range. Any bhelp would be appreciated.

Bernie Deitrick

macro {r 1} command in lotus
 
Ed,

Activecell.Offset(#rows,#columns).Select

So the same as {r 5} would be

Activecell.Offset(5,0).Select

But there is hardly ever any reason to actually select a cell.....

HTH,
Bernie
MS Excel MVP


"Ed" wrote in message
...
Lotus had a command that allowed you to move the cursor within a macro. The
comand was {r 5} which would move the cursor -right 5- from the current
location. Excell seems to record the keystroke movement into a specific cell
reference within the macro. I see you can do a similar command with
"Selection.End(xlDown)" but I want to move a defined # of cells. not to the
end of a range. Any bhelp would be appreciated.




Don Guillett[_4_]

macro {r 1} command in lotus
 
or in the case of moving to the RIGHT
offset(0,5)

--
Don Guillett
SalesAid Software

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Ed,

Activecell.Offset(#rows,#columns).Select

So the same as {r 5} would be

Activecell.Offset(5,0).Select

But there is hardly ever any reason to actually select a cell.....

HTH,
Bernie
MS Excel MVP


"Ed" wrote in message
...
Lotus had a command that allowed you to move the cursor within a macro.

The
comand was {r 5} which would move the cursor -right 5- from the current
location. Excell seems to record the keystroke movement into a specific

cell
reference within the macro. I see you can do a similar command with
"Selection.End(xlDown)" but I want to move a defined # of cells. not to

the
end of a range. Any bhelp would be appreciated.






Bernie Deitrick

macro {r 1} command in lotus
 
D'oh! Brain freeze.....

Thanks - at least somebody is reading this...

Bernie



"Don Guillett" wrote in message ...
or in the case of moving to the RIGHT
offset(0,5)

--
Don Guillett
SalesAid Software

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Ed,

Activecell.Offset(#rows,#columns).Select

So the same as {r 5} would be

Activecell.Offset(5,0).Select

But there is hardly ever any reason to actually select a cell.....

HTH,
Bernie
MS Excel MVP


"Ed" wrote in message
...
Lotus had a command that allowed you to move the cursor within a macro.

The
comand was {r 5} which would move the cursor -right 5- from the current
location. Excell seems to record the keystroke movement into a specific

cell
reference within the macro. I see you can do a similar command with
"Selection.End(xlDown)" but I want to move a defined # of cells. not to

the
end of a range. Any bhelp would be appreciated.








Don Guillett[_4_]

macro {r 1} command in lotus
 
I am guilty of these errors often.

--
Don Guillett
SalesAid Software

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
D'oh! Brain freeze.....

Thanks - at least somebody is reading this...

Bernie



"Don Guillett" wrote in message

...
or in the case of moving to the RIGHT
offset(0,5)

--
Don Guillett
SalesAid Software

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Ed,

Activecell.Offset(#rows,#columns).Select

So the same as {r 5} would be

Activecell.Offset(5,0).Select

But there is hardly ever any reason to actually select a cell.....

HTH,
Bernie
MS Excel MVP


"Ed" wrote in message
...
Lotus had a command that allowed you to move the cursor within a

macro.
The
comand was {r 5} which would move the cursor -right 5- from the

current
location. Excell seems to record the keystroke movement into a

specific
cell
reference within the macro. I see you can do a similar command with
"Selection.End(xlDown)" but I want to move a defined # of cells. not

to
the
end of a range. Any bhelp would be appreciated.










All times are GMT +1. The time now is 01:47 AM.

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