LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Something has to trigger Excel to evaluate G10=G160 and
then select J160 if it is TRUE. What will trigger it? One
possibility is a Worksheet_Change event so that if cells
G10 or G160 are changed by the user, the macro will fire.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("G10,G160")) _
Is Nothing Then
If Me.[G10].Value = [G160].Value Then
Me.[J160].Select
End If
End If
End Sub


---
To use, right-click on the worksheet tab and choose "View
Code". Paste in the code above and press ALT+Q to close
VBE.

HTH
Jason
Atlanta, GA

-----Original Message-----
jI WANT TO BE ABLE TO ISE SOMETHING LIKE THIS @IF G10

=G160, GOTO J160
.

 
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
How do I unhide the cell format function in Excel 2000 Len Melcer Excel Worksheet Functions 2 December 15th 04 06:49 PM
Excel: how to formulate conditional cell references centraloffice Excel Worksheet Functions 1 December 10th 04 08:57 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM
Writing many lines on a same Excel 2000 cell freeposte Excel Discussion (Misc queries) 2 December 8th 04 02:45 PM
Can 2 different hyperlinks be in the same Excel cell? rynes01 Excel Worksheet Functions 2 December 7th 04 05:15 PM


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