Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

shift right 5 columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raymond chiu - 22 Nov 2005 03:40 GMT
Dear All,

I am using VB to manipulate the excel.

How can I get the cell(e.g. "AB4", column AB and Row4) if I want  to shift
25 columns to right from "F4" cell.

What the formula should be in VB or excel?

Thanks,
Gord Dibben - 22 Nov 2005 05:15 GMT
VBA................

Activecell.Offset(0,25).Select  to go to the cell 25 columns to right

Range("F4").Offset(0,25).Select  to go to the cell

Range("F4").Value = Range("F4").Offset(0, 25).Value  to return the value

Formula..................

=OFFSET(F4,0,25)  will return the value of AE4

=OFFSET(F4,0,22)  will return the value of AB4

Gord Dibben Excel MVP

>Dear All,
>
[quoted text clipped - 6 lines]
>
>Thanks,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.