Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Two Worksheet Change macros in same worksheet? Is it possible?

It is possible to have two Worksheet changes macros for two different
cells names Input_SO and Input_SRT on the worksheet named
'Input' (Cells located in the same worksheet) even though they have
different names?

I have written the code for the cell called Input_SRT to do something
when that cell is changed.

When I write the code for a worksheet change for Input_SO, I start
having problems.
I am having trouble to hide rows 13:15 when Yes is selected for
Input_SO cell.
In the Input_SO, I have a dropdown list (using data validation) for
Yes or No to be selected.
If "Yes" is selected, I want the rows 13:15 on another worksheet
called 'Sand Hgt' to be hidden.

Any help is greatly appreciated. Thanks.

Matt

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Two Worksheet Change macros in same worksheet? Is it possible?

You can't have tow but you handle it b y testing one after the other

If Not Intersect(Target, Me.Range(Input_SRT")) Is Nothing Then

'do the code already written
ElseIf Not Intersect(Target, Me.Range(Input_SO")) Is Nothing Then

If .Value = "Yes" Then

Worksheets("Sand Hgt").Rows("13:15").Hidden = True
End If
End If

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Matt" wrote in message
ups.com...
It is possible to have two Worksheet changes macros for two different
cells names Input_SO and Input_SRT on the worksheet named
'Input' (Cells located in the same worksheet) even though they have
different names?

I have written the code for the cell called Input_SRT to do something
when that cell is changed.

When I write the code for a worksheet change for Input_SO, I start
having problems.
I am having trouble to hide rows 13:15 when Yes is selected for
Input_SO cell.
In the Input_SO, I have a dropdown list (using data validation) for
Yes or No to be selected.
If "Yes" is selected, I want the rows 13:15 on another worksheet
called 'Sand Hgt' to be hidden.

Any help is greatly appreciated. Thanks.

Matt



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
Macros for Consolidating data in worksheet 1 on worksheet 2 Omokehinde Excel Programming 1 March 4th 12 01:45 PM
Change Worksheet Button Caption on Worksheet.Activate MikeZz Excel Programming 1 December 7th 06 06:01 AM
Multiple Date Stamp & Worksheet Change macros alex3867[_5_] Excel Programming 1 August 11th 06 06:04 AM
list worksheet macros/VBA without adding worksheet br549 Excel Discussion (Misc queries) 0 January 6th 06 10:17 PM
toolbar macros that dont change when worksheet is renamed marlin40 New Users to Excel 1 November 21st 05 07:25 PM


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