Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pal Pal is offline
external usenet poster
 
Posts: 27
Default MouseMove causes Excel Crash


The following program causes Excel to crash.

I want to display live the mouse selected text in textbox
into cell(4,8) as I scroll thru text. I had though of using something
like WHILE mouse button down but could not get it to work
so I went with mouse move - but I think it is not efficient.

Private Sub textbox1_MouseMove _
(ByVal Button As Integer, ByVal Shift As Integer, _
ByVal X As Single, ByVal Y As Single)

Cells(4, 8).Value = TextBox1.SelText
End Sub


Thanks
Pal


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default MouseMove causes Excel Crash

Tried your code in the following environment and it works fine.

Excel V10.4524 SP-2
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 1 Build 2600

Cheers
Nigel

"Pal" wrote in message
news:CxvSb.188129$xy6.963381@attbi_s02...

The following program causes Excel to crash.

I want to display live the mouse selected text in textbox
into cell(4,8) as I scroll thru text. I had though of using something
like WHILE mouse button down but could not get it to work
so I went with mouse move - but I think it is not efficient.

Private Sub textbox1_MouseMove _
(ByVal Button As Integer, ByVal Shift As Integer, _
ByVal X As Single, ByVal Y As Single)

Cells(4, 8).Value = TextBox1.SelText
End Sub


Thanks
Pal






----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
  #3   Report Post  
Posted to microsoft.public.excel.programming
Pal Pal is offline
external usenet poster
 
Posts: 27
Default MouseMove causes Excel Crash

If I start a new sheet it works fine for a few minutes. But then crashed
after I try to add any other scripts.
I get the following Run Time error when I place my cursor over the textbox.

Method "Value" of Object Range failed



"Nigel" wrote in message
...
Tried your code in the following environment and it works fine.

Excel V10.4524 SP-2
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 1 Build 2600

Cheers
Nigel

"Pal" wrote in message
news:CxvSb.188129$xy6.963381@attbi_s02...

The following program causes Excel to crash.

I want to display live the mouse selected text in textbox
into cell(4,8) as I scroll thru text. I had though of using something
like WHILE mouse button down but could not get it to work
so I went with mouse move - but I think it is not efficient.

Private Sub textbox1_MouseMove _
(ByVal Button As Integer, ByVal Shift As Integer, _
ByVal X As Single, ByVal Y As Single)

Cells(4, 8).Value = TextBox1.SelText
End Sub


Thanks
Pal






----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---


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
password crash in excel kmb0702 Excel Discussion (Misc queries) 5 December 30th 06 11:52 PM
Excel Crash - Help! Delbert Excel Discussion (Misc queries) 13 December 13th 05 10:02 PM
Excel 2003 Crash Delbert Excel Discussion (Misc queries) 0 December 12th 05 08:21 PM
Crash in excel.exe Burak[_2_] Excel Programming 0 November 5th 03 10:55 AM
Excel Crash Seth[_3_] Excel Programming 1 October 31st 03 01:59 PM


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