Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default User Form - frame scroll with wheel mouse and cut & paste from tex

I have created a user form in excel 2003, I have a frame that has a verticle
scroll bar. I need some code to make the wheel mouse work on the frame. I
cannot use a thirdparty program. It has to be coded in excel. I have tried a
couple of examples of api code and failed. Can some one help me? Also I need
to know how I could right click on a text box on the form and cut & paste to
other applications. THANKS IN ADVANCE!!!!

qaform = name of form
frmmain = name of frame to scroll


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default User Form - frame scroll with wheel mouse and cut & paste from tex

Hi Kenjaro,
How about use a DLL that available on MS site?
I think it's the easiest way.

Mouse wheel events do not work in the Visual Basic 6.0 IDE
http://support.microsoft.com/kb/837910/EN-US/

If you really would like to write a code in Excel VBA alone, you need search
it in MSDN site.

--
Regards,
Colo
http://www.puremis.net/excel/


"Kenjaro" wrote in message
...
I have created a user form in excel 2003, I have a frame that has a

verticle
scroll bar. I need some code to make the wheel mouse work on the frame. I
cannot use a thirdparty program. It has to be coded in excel. I have tried

a
couple of examples of api code and failed. Can some one help me? Also I

need
to know how I could right click on a text box on the form and cut & paste

to
other applications. THANKS IN ADVANCE!!!!

qaform = name of form
frmmain = name of frame to scroll



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default User Form - frame scroll with wheel mouse and cut & paste from tex

Hi Kenjaro,
right click on a text box and cut & paste

Private Sub TextBox1_MouseDown _
(ByVal Button%, ByVal Shift%, ByVal X!, ByVal Y!)
If Button = 2 Then
With Me.TextBox1
..SelStart = 0: .SelLength = Len(.Text)
'.Copy
..Cut
End With
End If
End Sub

select other application and paste.
MP


"Kenjaro" a écrit dans le message de
...
I have created a user form in excel 2003, I have a frame that has a

verticle
scroll bar. I need some code to make the wheel mouse work on the frame. I
cannot use a thirdparty program. It has to be coded in excel. I have tried

a
couple of examples of api code and failed. Can some one help me? Also I

need
to know how I could right click on a text box on the form and cut & paste

to
other applications. THANKS IN ADVANCE!!!!

qaform = name of form
frmmain = name of frame to scroll



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default User Form - frame scroll with wheel mouse and cut & paste from

Well because it dosent work with vb editor in excel. Tried it. It dosent work
:(


"Colo" wrote:

Hi Kenjaro,
How about use a DLL that available on MS site?
I think it's the easiest way.

Mouse wheel events do not work in the Visual Basic 6.0 IDE
http://support.microsoft.com/kb/837910/EN-US/

If you really would like to write a code in Excel VBA alone, you need search
it in MSDN site.

--
Regards,
Colo
http://www.puremis.net/excel/


"Kenjaro" wrote in message
...
I have created a user form in excel 2003, I have a frame that has a

verticle
scroll bar. I need some code to make the wheel mouse work on the frame. I
cannot use a thirdparty program. It has to be coded in excel. I have tried

a
couple of examples of api code and failed. Can some one help me? Also I

need
to know how I could right click on a text box on the form and cut & paste

to
other applications. THANKS IN ADVANCE!!!!

qaform = name of form
frmmain = name of frame to scroll




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
Can't Scroll w/ Mouse Wheel in Excel SJK Excel Discussion (Misc queries) 0 April 7th 09 05:17 AM
mouse scroll wheel rat Excel Discussion (Misc queries) 3 July 11th 07 10:52 PM
Using mouse wheel to scroll drop down rfielack Excel Discussion (Misc queries) 0 January 14th 06 10:01 PM
use of mouse track wheel on user form combobox... mjs Excel Programming 1 January 13th 05 01:50 AM
Mouse scroll in user form list GoDGo Excel Programming 3 October 5th 04 06:35 AM


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