Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Mutiple Intersect Ranges for same worksheet - Help!!

The below Macro copies a certain cell's contents over to the next page when
the range (B9:B18) is touched - copies a special note in E5 (of the same
page) to the following page - inserts in cell B6.

I want to do the same thing for my next range of cells in the same page
(B21:B28), but I need a different cell's contents to copy to the next page -
E18 (of same page) to next page cell B11.

Every time I try to combine the request for the same worksheet, I get an
error or it just doesn't work??

Thank you for any thoughts - Jenny

__________________________________________________ ___________________________


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("B9:B16")) _
Is Nothing Then Exit Sub
Sheets("Interview Builder").Range("e5").Copy
Destination:=Sheets("Definition").Range("b6")

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Mutiple Intersect Ranges for same worksheet - Help!!

I'm assuming the code is in the "Interview Builder" sheet module and the
cells you are copying are in this worksheet - so I didn't fully qualify the
copy from ranges.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("B9:B16")) Is Nothing Then
Range("e5").Copy Destination:=Sheets("Definition").Range("b6")
ElseIf Not Intersect(Target, Range("B21:B28")) Is Nothing Then
Range("E18").Copy Destination:=Sheets("Definition").Range("B11")
End If
End Sub


"Jenny B." wrote:

The below Macro copies a certain cell's contents over to the next page when
the range (B9:B18) is touched - copies a special note in E5 (of the same
page) to the following page - inserts in cell B6.

I want to do the same thing for my next range of cells in the same page
(B21:B28), but I need a different cell's contents to copy to the next page -
E18 (of same page) to next page cell B11.

Every time I try to combine the request for the same worksheet, I get an
error or it just doesn't work??

Thank you for any thoughts - Jenny

__________________________________________________ ___________________________


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("B9:B16")) _
Is Nothing Then Exit Sub
Sheets("Interview Builder").Range("e5").Copy
Destination:=Sheets("Definition").Range("b6")

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Mutiple Intersect Ranges for same worksheet - Help!!

Thank you so much - I worked like a CHAMP!!

"JMB" wrote:

I'm assuming the code is in the "Interview Builder" sheet module and the
cells you are copying are in this worksheet - so I didn't fully qualify the
copy from ranges.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("B9:B16")) Is Nothing Then
Range("e5").Copy Destination:=Sheets("Definition").Range("b6")
ElseIf Not Intersect(Target, Range("B21:B28")) Is Nothing Then
Range("E18").Copy Destination:=Sheets("Definition").Range("B11")
End If
End Sub


"Jenny B." wrote:

The below Macro copies a certain cell's contents over to the next page when
the range (B9:B18) is touched - copies a special note in E5 (of the same
page) to the following page - inserts in cell B6.

I want to do the same thing for my next range of cells in the same page
(B21:B28), but I need a different cell's contents to copy to the next page -
E18 (of same page) to next page cell B11.

Every time I try to combine the request for the same worksheet, I get an
error or it just doesn't work??

Thank you for any thoughts - Jenny

__________________________________________________ ___________________________


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("B9:B16")) _
Is Nothing Then Exit Sub
Sheets("Interview Builder").Range("e5").Copy
Destination:=Sheets("Definition").Range("b6")

End Sub

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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
If then formulas K Excel Worksheet Functions 12 August 30th 06 02:29 PM
How:Add New Worksheet that copies the cell of the previous sheet JLM Excel Worksheet Functions 1 August 24th 06 08:04 PM
Mass Creation of Named Ranges? [email protected] Excel Discussion (Misc queries) 7 July 11th 06 08:41 AM
automate printing different ranges on 1 worksheet at different tim SteveM Excel Discussion (Misc queries) 2 December 29th 05 03:01 PM


All times are GMT +1. The time now is 12:55 PM.

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"