Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Clearing the contents of a row

Any idea why the following does not clear the contents of row 1 in ToTable?

Sheets(ToSheet).Range(ToTable)(1).ClearContents

I appreciate your help, -John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Clearing the contents of a row

The (1) is limiting the Clear to the first cell of the range.
--
Gary''s Student - gsnu200832


"John" wrote:

Any idea why the following does not clear the contents of row 1 in ToTable?

Sheets(ToSheet).Range(ToTable)(1).ClearContents

I appreciate your help, -John

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Clearing the contents of a row

Sheets(ToSheet).Range(ToTable).rows(1).ClearConten ts


John wrote:

Any idea why the following does not clear the contents of row 1 in ToTable?

Sheets(ToSheet).Range(ToTable)(1).ClearContents

I appreciate your help, -John


--

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
Clearing Contents AMANDA Excel Discussion (Misc queries) 2 July 6th 09 05:34 PM
Clearing contents from a range G. Yamada[_2_] Excel Programming 13 September 25th 08 07:45 PM
Clearing contents Zak Excel Programming 4 May 12th 08 03:55 PM
Clearing Contents Sean Excel Programming 5 May 6th 05 05:16 PM
Clearing Cell Contents Lester Excel Programming 2 June 18th 04 10:31 PM


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