Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Hiding row ?

Hi all

Am I doing anything wrong here?

ws.Range(Trim(Str(j)) & ":" & Trim(Str(j))).Hidden =
True

It does not work for some reason....

Sonnich

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Hiding row ?

Yes, but you already knew that. Try...

ws.Range(Trim(Str(j)) & ":" & Trim(Str(j))).EntireRow.Hidden = True
'-or-
ws.Rows(j).Hidden = True
--
Jim Cone
Portland, Oregon USA
http://www.contextures.com/excel-sort-addin.html
(30 different ways to sort in excel)




"jodleren"
wrote in message
...
Hi all
Am I doing anything wrong here?
ws.Range(Trim(Str(j)) & ":" & Trim(Str(j))).Hidden = True
It does not work for some reason....
Sonnich



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 420
Default Hiding row ?

I would use Jim's
ws.Rows(j).Hidden = True

or
ws.cells(j,1).entirerow.hidden = true




On 01/12/2011 08:19, jodleren wrote:
Hi all

Am I doing anything wrong here?

ws.Range(Trim(Str(j))& ":"& Trim(Str(j))).Hidden =
True

It does not work for some reason....

Sonnich


--
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
hiding a row bryan Excel Programming 3 March 10th 09 06:40 PM
Hiding a button when hiding rows fergusor Excel Discussion (Misc queries) 2 August 10th 06 02:31 PM
Hiding #N/A FP Novice Excel Discussion (Misc queries) 1 August 7th 06 09:49 PM
Hiding Column Also hiding text Cindy Excel Programming 0 April 6th 06 07:18 PM
Hiding #N/A Mick Excel Worksheet Functions 4 December 1st 04 12:35 AM


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