LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Macro to control two workbook

Hello,

I have a file with 3 worksheets. I assigned a macro to a combo box on
sheet1. The macro only controls sheet2. How can I modify this macro so it
works for both sheet2 and sheet3? Sheet2 and sheet3 are identical.

Sub RwHide()
Dim RwCnt As Integer
For RwCnt = 8 To 138
If Range("N" & RwCnt) = 0 Then
Range("N" & RwCnt).EntireRow.Hidden = True
End If
Next
For RwCnt = 8 To 138
If Range("N" & RwCnt) < 0 Then
Range("N" & RwCnt).EntireRow.Hidden = False
End If
Next
End Sub

Thanks a lot,
LLee



 
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
Transferring control from macro in one workbook to macro in anothe Andyjim Excel Programming 2 January 15th 08 06:58 PM
Can I pass control to a 2nd workbook Alan Excel Programming 3 March 20th 07 01:26 PM
ActiveX Control with workbook Buffyslay Excel Programming 0 March 13th 07 01:38 PM
Giving Macro control to another workbook Trefor Excel Programming 3 July 25th 06 03:17 AM
Workbook Permissions - How to Control? Karl Burrows Excel Discussion (Misc queries) 3 June 4th 05 04:55 PM


All times are GMT +1. The time now is 03:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"