Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kim Kim is offline
external usenet poster
 
Posts: 284
Default relative addressing in code

Given a properly formatted date and code of CurMonth = Month([A400]) how can
I move the cell with date(A400) and have code follow change? I've tried many
things -- none work.

What am I missing?

Thanks,

Kim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default relative addressing in code

Name the cell (InsertNameDefine ...), and use that name

CurMonth = Month(Range("named_cell"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Kim" wrote in message
...
Given a properly formatted date and code of CurMonth = Month([A400]) how

can
I move the cell with date(A400) and have code follow change? I've tried

many
things -- none work.

What am I missing?

Thanks,

Kim




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
Relative Addressing not working PocketRocket Excel Worksheet Functions 4 October 22nd 09 07:10 PM
what is the difference between relative and absolute addressing [email protected] Excel Discussion (Misc queries) 1 August 9th 07 05:42 AM
Relative addressing DOGMA-DOT Excel Worksheet Functions 1 July 13th 06 10:45 AM
Relative Addressing Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 February 20th 05 04:43 AM
Modifying Relative Addressing Dale Cox Excel Programming 1 August 26th 03 04:04 PM


All times are GMT +1. The time now is 12:43 AM.

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"