+ Reply to Thread
Results 1 to 9 of 9

autoselect freehand-tool (shapes)

  1. #1
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    autoselect freehand-tool (shapes)

    question in short:
    Is it possible to write a macro that auto-selects the freehand-tool for you?
    as in: "run macro, then start drawing?"
    (see attached image for which tool I mean(note: norwegian excel))

    Why do I want to do this?
    I have created a userform that, among a lot of other things, has an image-container that serves as a signature field.
    When a user clicks on the image-container, the userform hides and they are directed to an excel-sheet called "signature"

    the problem is that the user then have to manually click on the drawing-toolbar, select "Autofigures" - "Lines" - "Freehandform" to be able to start signing (or drawing).


    (once they've done drawing/signing (creating a shape), they click a button that converts the shape into an image, then pastes it into the imagecontainer in the userform, so everything else works "automatic")
    Attached Images Attached Images
    Last edited by wamp; 05-04-2010 at 05:17 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: autoselect freehand-tool (shapes)

    I'm guessing you want the Scribble control for a signature, rather than the Freeform, so:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: autoselect freehand-tool (shapes)

    ahh.. purrfect.

    by any chance, do you know of a list of the control ID's? (scribble is id 409, but how could I figure that out?)

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: autoselect freehand-tool (shapes)

    You might be interested in: http://www.rondebruin.nl/menuid.htm

  5. #5
    Forum Contributor wamp's Avatar
    Join Date
    11-10-2008
    Location
    Norway
    MS-Off Ver
    97, 2000 & 2003 (diff. workstations)
    Posts
    184

    Re: autoselect freehand-tool (shapes)

    bookmarked!

    thanks

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: autoselect freehand-tool (shapes)

    I use this code:
    Please Login or Register  to view this content.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: autoselect freehand-tool (shapes)

    Forgot the additional funcs:
    Please Login or Register  to view this content.

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: autoselect freehand-tool (shapes)

    And if you want the pictures too:
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-22-2014
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    1

    Smile Re: autoselect freehand-tool (shapes)

    Hey guys,
    I need some advice.
    I just added the line:
    Please Login or Register  to view this content.
    into the macro connected to the button. Now if I click on the button, the arrow of the mouse chances into a pencil, so far so good but I cant draw anything into my worksheet. What do I need to do to solve the problem. I have no idea about VB.

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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