Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
raymond chiu
 
Posts: n/a
Default shift right 5 columns

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,


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default shift right 5 columns

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

On Tue, 22 Nov 2005 11:40:48 +0800, "raymond chiu"
wrote:

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,


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
how to combine several columns into a single column jims Excel Discussion (Misc queries) 9 August 15th 05 12:00 PM
Clearing information in certain columns jolly_lolly Excel Discussion (Misc queries) 1 April 22nd 05 02:41 AM
Hiding columns and custom views problem Bettergains Excel Discussion (Misc queries) 2 April 12th 05 11:48 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM


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