#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Forms

I am a beginner/self-teaching VBA user and I would like to know what
"ActiveCell.Offset(0, 1)" code stands for...especially the 0 and the 1.
I believe it has to do with the columns but I am not sure.

Thanks.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA Forms

As you rightly surmise, the 0 and 1 refer to then number of rows and columns
offset from the range being referred to. So in this case, it refers to the
cell that is 0 rows down (negative for up), and 1 column to the right
(negative for left) of the activecell. It doesn't have to be ACtivecell,
this is just as valid

Range("A1").Offset(0, 1)

although this is always A1, whereas Activecell could be any cell.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"sjenks183 " wrote in message
...
I am a beginner/self-teaching VBA user and I would like to know what
"ActiveCell.Offset(0, 1)" code stands for...especially the 0 and the 1.
I believe it has to do with the columns but I am not sure.

Thanks.


---
Message posted from http://www.ExcelForum.com/



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
help - with forms [email protected] Excel Discussion (Misc queries) 1 July 31st 07 01:50 PM
Forms ChrisLouie Excel Discussion (Misc queries) 4 July 18th 07 11:04 PM
Forms Mike Excel Worksheet Functions 0 July 5th 05 11:40 PM
Pop Up Forms TBD Excel Discussion (Misc queries) 9 January 27th 05 04:27 PM
Forms DebbieG Excel Programming 1 September 10th 03 06:15 PM


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