Consulting

Results 1 to 4 of 4

Thread: Drag & Drop?

  1. #1

    Drag & Drop?

    Hi, I need to build a VBA progam where the user needs to select certain values.

    Instead of creating option buttons, is it possible to create something in which the user can drag the selection and drop it into somewhere in the program?

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    I am not sure what you mean. They can already drag and drop if the worksheet is not protected and cells are unlocked.

    You can use Application.Input with the type as 8 to let them pick a range.

    If you are in a userform, you can set the ShowModal property to False or set it when you Show it.

  3. #3
    thanks. do you happen to know where I can find an VBA sample program with drag & drop? I searched the Internet, but all I could find was the codes..

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Note Kenneth's suggestion of ... Application.Input with the type as 8 ...
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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