LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default telling Excel to go down relatively

Hi CC,

CC wrote:
Using VBA, how do you tell Excel to go down to the next cell
relatively, rather than absolutely?


ActiveCell.Offset(1, 0).Select

or

ActiveCell(2, 1).Select

However, it's rare that you need to select anything when working with Excel
through VBA. If you just need the value of the cell below the activecell,
you could do this:

MsgBox ActiveCell.Offset(1, 0).Value

or

MsgBox ActiveCell(2, 1).Value

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

 
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
Message telling calculation is complete deeds Excel Discussion (Misc queries) 16 May 5th 08 03:28 PM
formula telling me if person is 19 or older today kelley Excel Discussion (Misc queries) 5 June 29th 07 10:26 PM
how come microsoft wont let me type? it's telling me is locked missALBANIA Excel Discussion (Misc queries) 2 January 20th 07 12:12 AM
Are you kidding me??? Are you telling me I can't sort format: dddd, mmmm dd, yyyy? mrsinnister Excel Discussion (Misc queries) 5 March 23rd 06 11:53 PM
Telling the difference between zero and blank in IF statement mindfunk Excel Worksheet Functions 1 June 30th 05 06:42 PM


All times are GMT +1. The time now is 09:35 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"