Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default changing active cell

Can I move the active cell around in VBA like I use to do in Lotus? ie up3,
right7 etc


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default changing active cell

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus? ie
up3,
right7 etc




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default changing active cell

Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus? ie
up3,
right7 etc





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default changing active cell

Perhaps you might care to show the code which produces
this error, then?

"doug" wrote in message
...
Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus? ie
up3,
right7 etc







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default changing active cell


Użytkownik "doug" napisał w wiadomo¶ci
...
Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus? ie
up3,
right7 etc





maybe ActiveCell.Offset(-3, 7) goes out of spredsheet?
mcg





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default changing active cell

Starting at cell L51, the first line works good when alone,


Selection.EntireRow.Insert
ActiveCell.Offset(0,-3)


"Stuart" wrote:

Perhaps you might care to show the code which produces
this error, then?

"doug" wrote in message
...
Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus? ie
up3,
right7 etc








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default changing active cell

Selection.EntireRow.Insert
ActiveCell.Offset(0,-3).Select

but hopefully you will give up this approach and learn how to program in
VBA -- which doesn't mimic cursoring around the worksheet.

--
Regards,
Tom Ogilvy

"doug" wrote in message
...
Starting at cell L51, the first line works good when alone,


Selection.EntireRow.Insert
ActiveCell.Offset(0,-3)


"Stuart" wrote:

Perhaps you might care to show the code which produces
this error, then?

"doug" wrote in message
...
Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus?

ie
up3,
right7 etc










  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default changing active cell

I thought that was what I was doing. What would the VBA code be to insert a
row and be positioned in the A column of that row from anywhere in the
worksheet?

"Tom Ogilvy" wrote:

Selection.EntireRow.Insert
ActiveCell.Offset(0,-3).Select

but hopefully you will give up this approach and learn how to program in
VBA -- which doesn't mimic cursoring around the worksheet.

--
Regards,
Tom Ogilvy

"doug" wrote in message
...
Starting at cell L51, the first line works good when alone,


Selection.EntireRow.Insert
ActiveCell.Offset(0,-3)


"Stuart" wrote:

Perhaps you might care to show the code which produces
this error, then?

"doug" wrote in message
...
Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in Lotus?

ie
up3,
right7 etc











  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default changing active cell

Sub aa()
Rows(ActiveCell.Row).Insert
Cells(ActiveCell.Row, 1).Select
End Sub


--
Regards,
Tom Ogilvy



"doug" wrote in message
...
I thought that was what I was doing. What would the VBA code be to insert

a
row and be positioned in the A column of that row from anywhere in the
worksheet?

"Tom Ogilvy" wrote:

Selection.EntireRow.Insert
ActiveCell.Offset(0,-3).Select

but hopefully you will give up this approach and learn how to program in
VBA -- which doesn't mimic cursoring around the worksheet.

--
Regards,
Tom Ogilvy

"doug" wrote in message
...
Starting at cell L51, the first line works good when alone,


Selection.EntireRow.Insert
ActiveCell.Offset(0,-3)


"Stuart" wrote:

Perhaps you might care to show the code which produces
this error, then?

"doug" wrote in message
...
Thanks but that returns a compile/syntax error.

"Stuart" wrote:

Perhaps ActiveCell.Offset(-3, 7) ?

Regards.

"doug" wrote in message
...
Can I move the active cell around in VBA like I use to do in

Lotus?
ie
up3,
right7 etc













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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
Changing an active cell format in VBA Packman Excel Discussion (Misc queries) 4 April 6th 06 07:02 PM
printing only active range (changing) oz_saar Excel Discussion (Misc queries) 2 August 2nd 05 08:42 PM
Changing active selection cursor Mistaken Creation Excel Discussion (Misc queries) 3 May 27th 05 10:06 PM
Changing active cell to a color Bob Reynolds[_3_] Excel Programming 5 November 23rd 04 07:39 PM


All times are GMT +1. The time now is 02:52 PM.

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

About Us

"It's about Microsoft Excel"