Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
hiding rows on worksheets
I have a macro that will hide/unhide certain rows on sheets in my workbook, however i get ' Object doesn't support this property or method' error when i use the code below: Worksheets(Worksheets("JAN").Range("7:7,29:29,53:5 3").Select).EntireRow.Hidden = True or Sheets("JAN").Range("7:7,29:29,53:53").Select Worksheets("JAN").Selection.EntireRow.Hidden = True Any ideas? -- bg18461 ------------------------------------------------------------------------ bg18461's Profile: http://www.excelforum.com/member.php...fo&userid=8877 View this thread: http://www.excelforum.com/showthread...hreadid=315130 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
hiding rows on worksheets
Try the following:
Worksheets("JAN").Range("7:7,29:29,53:53").EntireR ow.Hidden= True -- John Green Sydney Australia "bg18461" wrote in message ... I have a macro that will hide/unhide certain rows on sheets in my workbook, however i get ' Object doesn't support this property or method' error when i use the code below: Worksheets(Worksheets("JAN").Range("7:7,29:29,53:5 3").Select).EntireRow.Hidd en = True or Sheets("JAN").Range("7:7,29:29,53:53").Select Worksheets("JAN").Selection.EntireRow.Hidden = True Any ideas? -- bg18461 ------------------------------------------------------------------------ bg18461's Profile: http://www.excelforum.com/member.php...fo&userid=8877 View this thread: http://www.excelforum.com/showthread...hreadid=315130 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
hiding rows on worksheets
try it this way:
Sheets("JAN").Range("7:7,29:29,53:53").Select Selection.EntireRow.Hidden = True "bg18461" wrote: I have a macro that will hide/unhide certain rows on sheets in my workbook, however i get ' Object doesn't support this property or method' error when i use the code below: Worksheets(Worksheets("JAN").Range("7:7,29:29,53:5 3").Select).EntireRow.Hidden = True or Sheets("JAN").Range("7:7,29:29,53:53").Select Worksheets("JAN").Selection.EntireRow.Hidden = True Any ideas? -- bg18461 ------------------------------------------------------------------------ bg18461's Profile: http://www.excelforum.com/member.php...fo&userid=8877 View this thread: http://www.excelforum.com/showthread...hreadid=315130 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Color alternate rows when after hiding selected rows | Excel Worksheet Functions | |||
Hiding Specific Rows Based on Values in Other Rows | Excel Worksheet Functions | |||
Hiding a button when hiding rows | Excel Discussion (Misc queries) | |||
HIDING ROWS IN PROTECTED WORKSHEETS | Excel Discussion (Misc queries) | |||
Hiding Rows if the linked rows are blank | Excel Discussion (Misc queries) |