Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default This should be easy

I am hoping this is simple but I haven't sussed it yet :(

I have a cell selected through a macro which searches and selects on a
specific term

This works fine. I want the active cell to be one to the right of the
active cell. (Next collumn) Is this easily done with one line?

Thanks if anyone can provide a solution for me

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default This should be easy

rngFound.Offset(0,1).activate

wrote in message
ups.com...
I am hoping this is simple but I haven't sussed it yet :(

I have a cell selected through a macro which searches and selects on a
specific term

This works fine. I want the active cell to be one to the right of the
active cell. (Next collumn) Is this easily done with one line?

Thanks if anyone can provide a solution for me



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default This should be easy

Thanks guys :)

Good of you too help! :)
Martin Fishlock wrote:

Hi,

This moves you to the cell to the right of your active cell (and down to
column 1 of the next row if at the end of the current row)

Sub nextcell()
If ActiveCell.Column < Cells.Columns.Count Then
ActiveCell.Offset(0, 1).Activate
'optional for next row if at end
ElseIf ActiveCell.Row < Cells.Rows.Count Then
Cells(ActiveCell.Row + 1, 1).Activate
End If
End Sub

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


" wrote:

I am hoping this is simple but I haven't sussed it yet :(

I have a cell selected through a macro which searches and selects on a
specific term

This works fine. I want the active cell to be one to the right of the
active cell. (Next collumn) Is this easily done with one line?

Thanks if anyone can provide a solution for me



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
Should be a easy How do I Dan Hale New Users to Excel 9 August 29th 06 08:53 AM
Should be easy how to Dan Hale Excel Worksheet Functions 1 August 28th 06 07:14 PM
Who said this would be easy! (oh yes I did!) nobbyknownowt Excel Discussion (Misc queries) 1 August 4th 06 03:20 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM
I'm sure this is easy but i can't do it... ian123[_2_] Excel Programming 5 November 27th 03 01:13 AM


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

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"