Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Define Range in VBA


Hi again!

This time I need some help on the following issue:

I have the limits of a range as 2 columns (the first one, it;s fixed,
"A3", and for the second one I know the relative position to this one -
for example, if this position is 20, i know it's about "A23" - 20 cells
below "A3").

Can anyone help me to define this range into a "as range" VBA variable
??

Also, this definition will be executed multiple time, and in the first
place I need a range delete. Is "Range("my_range")).delete" the correct
method call for that?

Thanks in advance,
Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=487185

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Define Range in VBA

Hi Chris,

Perhaps:

Range("A3").Resize(20).Delete shift:=xlUp

---
Regards,
Norman



"loopoo" wrote in
message ...

Hi again!

This time I need some help on the following issue:

I have the limits of a range as 2 columns (the first one, it;s fixed,
"A3", and for the second one I know the relative position to this one -
for example, if this position is 20, i know it's about "A23" - 20 cells
below "A3").

Can anyone help me to define this range into a "as range" VBA variable
??

Also, this definition will be executed multiple time, and in the first
place I need a range delete. Is "Range("my_range")).delete" the correct
method call for that?

Thanks in advance,
Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile:
http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=487185



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Define Range in VBA


Thanks a lot,

It works just fine for me


Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=487185

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
Define Name range Gotroots Excel Discussion (Misc queries) 10 December 19th 09 11:30 AM
Define a range jlclyde Excel Discussion (Misc queries) 2 April 17th 08 08:26 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
Define Range Name Wayne Huxman Excel Programming 3 November 21st 04 09:56 PM
TO DEFINE AMBIGUOUS RANGE ! jay dean Excel Programming 6 August 8th 04 09:26 PM


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