LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Absolute reference in VBA

In VBA the inserting of rows is irrelevant

Range("J13:J224").ClearContents

If you want that range to grow as data is inserted, then use a workbook name
(InsertNameDefine...) and use that name in the code

Range("rngData").ClearContents

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"leonidas" wrote in
message ...

Hi,

I have the following problem in excel:
I want to write code in VBA to clear the contents for rows J13:J224.
The only problem is that, when I insert a row in this range, cell J224
becomes cell J225.
Is it possible in VBA to make an absolute reference to cell J224? It
should be possible to insert multiple rows in the range (J13:J224).
Thanks in advance!


--
leonidas
------------------------------------------------------------------------
leonidas's Profile:

http://www.excelforum.com/member.php...o&userid=35375
View this thread: http://www.excelforum.com/showthread...hreadid=553151



 
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
Absolute cell reference will not remain absolute. Mike K Excel Worksheet Functions 1 October 8th 08 07:12 PM
How can I do an Absolute Cell Reference but non Absolute Cell Pais John Excel Programming 1 July 22nd 05 07:28 PM
How can I do an Absolute Cell Reference but non Absolute Cell Pais John Excel Programming 0 July 22nd 05 06:23 PM
absolute reference Dano Excel Discussion (Misc queries) 1 February 25th 05 09:28 PM
Absolute Reference DME Excel Worksheet Functions 3 November 12th 04 03:16 PM


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