LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Referencing Cells

This is my first time programming in VBA and I seem to
have some difficulty in referencing cells.

In the code I am writing I need to set a cell as a base
point, I know of the row for the base point but not the
column. After base cell is established, I would need to
reference other cells in reference to the base point cell
(Column for the base point may change in each iteration).

Here's the code I've tried using, but the third line gives
me an error.

Range("B30").End(xlToRight).Select
ActiveCell.Offset(rowOffset:=0, columnOffset:=-1).Select
Range(Cells("31", ActiveCell.Column)).Select

Can someone help me with this? Thank you.
 
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
referencing cells based on conditions in other cells mirskman Excel Discussion (Misc queries) 1 January 29th 09 09:57 PM
Referencing the same cells Kenton Excel Discussion (Misc queries) 6 November 25th 08 09:57 PM
Referencing several cells with IF? andim Excel Worksheet Functions 2 June 16th 08 11:24 AM
Referencing Cells PAL Excel Worksheet Functions 0 January 23rd 08 01:20 AM
Referencing Cells Bill W Excel Worksheet Functions 0 August 4th 05 05:10 PM


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