Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default What would be Excel's equivalent for a Lotus line "[Input].MoveCellPointer $Right,1"?

Recording a macro in Excel after

Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select

to move past a column (BE), I end up at the last column with data
I move the curser to the next column on the right I get

Range("T5").Select

i.e. an absolute location. That is not what I need as after entering data
into this column, the next time I execute the macro I like to end up at "U5"
etc.

Testing the recording of the same macro in Lotus I end up after

[Input].MoveCellPointer $EndLeft,1
[Input].MoveCellPointer $EndLeft,1

and moving the curser to the nect column on the right I get

[Input].MoveCellPointer $Right,1

Thus in Lotus it works fine as I always end up at the correct column

Anyone knows the equivalent Excel macro line which doesn't move me to an
absolute location but just the next column to the right?

Thanks, Willi





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default What would be Excel's equivalent for a Lotus line "[Input].MoveCel

Since you are moving the active cell you probably want

activecell.offset(0, 1).select

--
HTH...

Jim Thomlinson


"Spamfighter" wrote:

Recording a macro in Excel after

Selection.End(xlToLeft).Select
Selection.End(xlToLeft).Select

to move past a column (BE), I end up at the last column with data
I move the curser to the next column on the right I get

Range("T5").Select

i.e. an absolute location. That is not what I need as after entering data
into this column, the next time I execute the macro I like to end up at "U5"
etc.

Testing the recording of the same macro in Lotus I end up after

[Input].MoveCellPointer $EndLeft,1
[Input].MoveCellPointer $EndLeft,1

and moving the curser to the nect column on the right I get

[Input].MoveCellPointer $Right,1

Thus in Lotus it works fine as I always end up at the correct column

Anyone knows the equivalent Excel macro line which doesn't move me to an
absolute location but just the next column to the right?

Thanks, Willi






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default What would be Excel's equivalent for a Lotus line "[Input].MoveCel

Thanks Jim, that does the trick

Willi

"Jim Thomlinson" wrote in message
...
| Since you are moving the active cell you probably want
|
| activecell.offset(0, 1).select
|
| --
| HTH...
|
| Jim Thomlinson
|
|
| "Spamfighter" wrote:
|
| Recording a macro in Excel after
|
| Selection.End(xlToLeft).Select
| Selection.End(xlToLeft).Select
|
| to move past a column (BE), I end up at the last column with data
| I move the curser to the next column on the right I get
|
| Range("T5").Select
|
| i.e. an absolute location. That is not what I need as after entering
data
| into this column, the next time I execute the macro I like to end up at
"U5"
| etc.
|
| Testing the recording of the same macro in Lotus I end up after
|
| [Input].MoveCellPointer $EndLeft,1
| [Input].MoveCellPointer $EndLeft,1
|
| and moving the curser to the nect column on the right I get
|
| [Input].MoveCellPointer $Right,1
|
| Thus in Lotus it works fine as I always end up at the correct column
|
| Anyone knows the equivalent Excel macro line which doesn't move me to an
| absolute location but just the next column to the right?
|
| Thanks, Willi
|
|
|
|
|
|


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIFS equivalent in Excel 2003 - both criteria have text, one has "wildcard" Courtney[_3_] Excel Worksheet Functions 3 April 20th 10 03:01 AM
Excel Equivalent of Access "Load" Event? LarryP Excel Discussion (Misc queries) 2 April 7th 10 08:44 PM
Is there an Excel 2003 equivalent to Word's "versions" function? Steve Excel Discussion (Misc queries) 0 March 4th 07 02:01 AM
Is there an equivalent of Lotus 123's "Paste visible" command? AJ Excel Discussion (Misc queries) 6 March 16th 06 09:21 AM
Is there a "replace" or "Substitute" command in Excel's VB? [email protected] Excel Programming 2 December 5th 03 07:56 AM


All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"