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 Worksheet_Change not repetitive

I have found the Worksheet_Change function to be a great way to provide
criteria in Excel and return data from SQL tables. For example, typing a
city would return all of the address records for that city. Typing a
different city would clear and return a new record set.

The problem that I am having is that the Worksheet_Change function works
great on my machine and I am able to supply criteria in the target area over
and over and get different data each time. It doesn't, however, repeatedly
work on other machines. When sending the spreadsheet to other folks, the
first entry will result in retrieved data but changing the value in the
spread won't update the data.

I simplied the code down to a simple message box:

Private Sub Worksheet_Change(ByVal Target As Range)

If Not Application.Intersect(Target, Me.Range("Search")) Is Nothing Then
MsgBox Application.Intersect(Target, Me.Range("Search"))
End If

End Sub

Whatever is typed in the target is echoed in a message box. My machine
works fine, other only once.

Any ideas on where I should look for differences would be appreciated.
 
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
repetitive Repetitive formula Excel Discussion (Misc queries) 2 June 28th 06 05:59 AM
Repetitive IF THEN Statement Todd Huttenstine[_3_] Excel Programming 1 January 27th 04 05:12 AM
worksheet_change vs. calculate, and worksheet_change not running Tom Ogilvy Excel Programming 1 July 14th 03 02:51 AM
worksheet_change vs. calculate, and worksheet_change not running Ross[_5_] Excel Programming 0 July 13th 03 04:27 PM


All times are GMT +1. The time now is 09:01 AM.

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"