PC Review


Reply
Thread Tools Rate Thread

Differrence bewteen Rows(X) and Rows(X).EntireRow

 
 
Zoo
Guest
Posts: n/a
 
      22nd Jan 2007
Hi,
I want to unhide row x.
Is there any difference between result of A and that of B?

A: Rows(x).Hidden = False
B: Rows(x).EntireRow.Hidden = False

Is there any situation that A doet not work properly?

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      22nd Jan 2007
The two lines of code perform identically. The second probably takes a
nanosecond or two longer to execute. Which syntax to use is a stylistic
decision. I typically use the syntax of the second line, simply to provide
further documentation that the entire row is being deleted. It's habit and
harmless.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Zoo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I want to unhide row x.
> Is there any difference between result of A and that of B?
>
> A: Rows(x).Hidden = False
> B: Rows(x).EntireRow.Hidden = False
> Is there any situation that A doet not work properly?
>



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      22nd Jan 2007
None
Typically you would use the second to UN limit the range
with range("x2")
.value=3 'only that cell
.entirerow.dosomething
end with


--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Zoo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I want to unhide row x.
> Is there any difference between result of A and that of B?
>
> A: Rows(x).Hidden = False
> B: Rows(x).EntireRow.Hidden = False
> Is there any situation that A doet not work properly?
>



 
Reply With Quote
 
Zoo
Guest
Posts: n/a
 
      23rd Jan 2007
Thank you , Chip , Don.

I will use EntireRow.

"Don Guillett" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> None
> Typically you would use the second to UN limit the range
> with range("x2")
> .value=3 'only that cell
> .entirerow.dosomething
> end with
>
>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "Zoo" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>> I want to unhide row x.
>> Is there any difference between result of A and that of B?
>>
>> A: Rows(x).Hidden = False
>> B: Rows(x).EntireRow.Hidden = False
>> Is there any situation that A doet not work properly?
>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compare two files and merge rows base on a matching word within thesetwo rows mshak Microsoft Excel Programming 1 9th Dec 2009 01:34 AM
Access counts blank rows in Excel rows as records in linked table Linkerbink Microsoft Access External Data 1 14th Nov 2009 05:37 PM
"Add/Remove Rows Code" adds rows on grouped sheets, but won't remove rows. Conan Kelly Microsoft Excel Programming 1 16th Nov 2007 10:41 PM
EntireRow.Delete only removing half of the rows =?Utf-8?B?S2VsbGlJbkNhbGk=?= Microsoft Excel Programming 11 27th Feb 2006 09:36 PM
DataGrid, Windows - Does not refresh. data is in the rows but they are not visible, the rows are solid blue Richard Microsoft C# .NET 1 2nd Sep 2005 01:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:09 PM.