+ Reply to Thread
Results 1 to 2 of 2

make an userform able to scroll with a mouse

  1. #1
    Registered User
    Join Date
    10-13-2014
    Location
    Assen, The netherlands
    MS-Off Ver
    2013
    Posts
    27

    make an userform able to scroll with a mouse

    Hello,

    I've been reading and testing and testing and testing.... But I just can't get it to work.

    Thanks to an other post from Peter Thornton, I already have some coding :-)
    https://social.msdn.microsoft.com/Fo...0?forum=isvvba
    Some additional information:
    - I use a 64bit Windows 7, and Office 2013, also 64bit.

    Here's my problem.

    Every time I try to run the code, it gives me an compilation error:

    The text is roughly:There can only be remarks after End Sub, End Function or End Property

    This section is marked Blue by MS Excel 2013

    Private Declare PtrSafe Function FindWindow Lib "user32" _
    Alias "FindWindowA" ( _
    ByVal lpClassName As String, _
    ByVal lpWindowName As String) As Long

    As far as I could see, all the coding is correct.

    My code from the Userform1:
    Please Login or Register  to view this content.
    The other code in the next post..


    Can one of you please point me in the right direction? I love to have this function.

    Thank you.

  2. #2
    Registered User
    Join Date
    10-13-2014
    Location
    Assen, The netherlands
    MS-Off Ver
    2013
    Posts
    27

    Re: make an userform able to scroll with a mouse

    And my code from the Module:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How Do I make a Userform Resizable or allow it to scroll
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-25-2014, 06:57 AM
  2. Replies: 1
    Last Post: 11-16-2013, 06:17 PM
  3. Scroll with mouse wheel on userform
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2007, 08:19 PM
  4. [SOLVED] Scroll horizontaly with mouse, create same system used to scroll .
    By frederic in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-09-2005, 04:05 PM
  5. MAKE WHEEL MOUSE WORK ON USER FORM FRAME WITH SCROLL BAR HELP!!!!!
    By Kenjaro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2005, 11:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1