Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default need some help clearing a range

rng is a range

rng.offset(0,-2).Address ' $A$1
rng.offset(0, 5).Address ' $H$1

how do i clear the range a1:h1?


--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default need some help clearing a range

think i got this one, too

set rng2 =range(rng.offset(0,-2),rng.Offset(0,5).Address)
rng2.clear


--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
rng is a range

rng.offset(0,-2).Address ' $A$1
rng.offset(0, 5).Address ' $H$1

how do i clear the range a1:h1?


--


Gary





  #3   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default need some help clearing a range

Try:
Range(rng(1, -1), rng(1, 6)).Clear


"Gary Keramidas" wrote:

rng is a range

rng.offset(0,-2).Address ' $A$1
rng.offset(0, 5).Address ' $H$1

how do i clear the range a1:h1?


--


Gary




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default need some help clearing a range

that'll work, thanks

--


Gary


"JMB" wrote in message
...
Try:
Range(rng(1, -1), rng(1, 6)).Clear


"Gary Keramidas" wrote:

rng is a range

rng.offset(0,-2).Address ' $A$1
rng.offset(0, 5).Address ' $H$1

how do i clear the range a1:h1?


--


Gary






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default need some help clearing a range

One mo

rng.offset(0,-2).resize(1, 8).clearcontents



Gary Keramidas wrote:

rng is a range

rng.offset(0,-2).Address ' $A$1
rng.offset(0, 5).Address ' $H$1

how do i clear the range a1:h1?

--

Gary


--

Dave Peterson


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
Deleting/Clearing duplicate range of cells Steve Excel Worksheet Functions 0 April 28th 10 03:59 PM
Clearing cells without clearing formulas marsjune68 Excel Discussion (Misc queries) 2 April 10th 09 07:39 PM
Clearing a Range Ronald Cayne Excel Programming 4 September 12th 04 04:00 AM
Clearing a Column range in Multiple Workbooks Ruan[_3_] Excel Programming 1 August 15th 03 07:43 PM
Accessing/Clearing range in hidden workbook DarrenW Excel Programming 2 July 17th 03 04:00 AM


All times are GMT +1. The time now is 10:18 PM.

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"