Consulting

Results 1 to 15 of 15

Thread: Draw Line Arrow VBA,VBE,MACro

  1. #1
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location

    Draw line Arrow VBA, VBE, Macro

    Hi everybody

    I thing what I will ask is challenging.
    on Excel I have userForm which comes on "shows" when the user click a certain button "Coustmized Button". This UserForm contains different types of controls on a Multipage, so, in a sence I have three layers from the bottom UserForm,Multipage & other Controls such as TextBox, LableBox.

    The function of this userForm as unit, is to communicate with the user,when the user provide certain data, which are required from the user then results are provided.

    The data which are provided by the user, must be presented by arrows pointing in specific direction based on the data that were provided by the user.

    I neeeeed Heeeeelp

    I would like to be able to draw lines or arrows automatically or manually on the UserForm or on the Multipage based on some numbers "the data".Also, to manipulate these lines and arrows,color,font size etc all that I think should be in VBE Codes or by Macro. I am not sure & what if I need square circle triangle?
    Thanks
    __________________

  2. #2
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Hi adel,

    Welcolme to VBAX!!

    If you already have the userform could you zip the file and upload it?

    <when the user provide certain data>
    can you provide samples?

    <which are required from the user then results are provided>
    what are the results?

    <The data which are provided by the user, must be presented by arrows pointing in specific direction based on the data that were provided by the user>
    What determines the direction the arrows point?

    What you seem to be asking sounds at the moment to be doable, depends on the extent/magnitude.

  3. #3
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location
    Hi
    The zip file will have to waite till i get home, yes, the file I think will answer your questions. In regards to the arrows directions I could mandate this direction as downward, but what if the user wants it in a different direction. These arrows should represents a load magnitude which is specified by the user as input data.
    thanks

  4. #4
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    That is kinda what I was asking, on the arrows what determines the direction. The squares and triangles are not a problem, the circles may or not be depends . I'll check this afternoon later and see if the zip file is here and look at and get back with you.

  5. #5
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location
    ok sounds good i need 7 hours from now to down load.

  6. #6
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Hi,

    I have an example of drawing on a userform that you might find useful.
    Cheers
    Andy

  7. #7
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location
    Quote Originally Posted by Tommy
    That is kinda what I was asking, on the arrows what determines the direction. The squares and triangles are not a problem, the circles may or not be depends . I'll check this afternoon later and see if the zip file is here and look at and get back with you.

    Hi

    Ihave aproblem with my PC the zip file I can down loaded on Teusday.
    . thanks

  8. #8
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location
    Quote Originally Posted by Andy Pope
    Hi,

    I have an example of drawing on a userform that you might find useful.

    Hi Andy

    Will this example that you have is probably start for me because I need a lot of manipulations specially on the arrows .I am going to look at your example thoroughly ,

    thanks for replying



  9. #9
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location

    Draw Line Arrow VBA,VBE,MACro

    hI

    I have a UserForm on it Multipage and I would like to be able to draw lines or arrows automatically or manually on the UserForm or on the Multipage based on some numbers.Also, to manipulate these lines and arrows,color,font size etc all that I think should be in VBA, VBE Codes or by Macro.

  10. #10
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi,

    Please continue here:

    I've merged this thread with your previous thread!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  11. #11
    Administrator
    Chat VP
    VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Hi adel,

    It may help you if you check out this thread also. http://www.vbaexpress.com/forum/showthread.php?t=3903. (Particularly the posts by TonyJollans and Aaron Blood).

    HTH,
    John
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  12. #12
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location
    Hi johnske

    These code were preformed as excel for these lines, I am looking for scaled lines & Arrows which will be on UserForm or multipage control. so the codes of these lines and arrows must be as VBA,VBE or by Macro I think.

    Thanks

  13. #13
    Administrator
    VP-Knowledge Base VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    It seems to me Andy's example does exactly what you want?
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  14. #14
    VBAX Regular
    Joined
    Aug 2005
    Posts
    15
    Location
    may be, I am looking into it

  15. #15
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by adel
    may be, I am looking into it
    Ah ok!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

Posting Permissions

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