+ Reply to Thread
Results 1 to 7 of 7

data form to browse & edit, with multiline textbox

  1. #1
    Registered User
    Join Date
    12-24-2006
    Posts
    3

    Question data form to browse & edit, with multiline textbox

    Happy Christmas Eve!
    This is my first post to this forum and may be a terribly naive question, but here y'go...
    I'm using Excel 2003 to develop an very simple Excel 2002 application: I need a form that is almost EXACTLY like the Excel Data Form with JUST ONE tiny change: I would like to make one of the text boxes MULTILINE.

    I figure that if I can get to the vba behind the Data Form, I can copy and modify easily enough. But how, how, how do I get to the vba for the Excel Data Form so I can tweak it? Shall I just buy the code behind the JWalk Enhanced Data Form?

    Many thanks

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    Happy holidays (politically correct!)!
    Either:
    Click on Alt + F11
    Click Tools, Macro, Visual Basic Editor
    or as I do click View, Toolbars, Visual Basic and you will have a icon that will allow you to go to the VBE directly!
    Best regards,

    Ray

  3. #3
    Registered User
    Join Date
    12-24-2006
    Posts
    3
    Thanks Ray,
    yep, that's what I figured. Trouble is, the built-in Data Form seems to be Modal, so clicking Alt-F11 when it's open does exactly nothing :-( And when the Data Form is not open, I can browse all the VBA code I like: but either i wrote it (so that's going to teach me nothing) or it's password protected (Funcres.xla) All a bit catch-22 for me!

    Cheers
    Sarah McM

  4. #4
    Registered User
    Join Date
    12-24-2006
    Posts
    3

    :-a glimmer of hope...

    I've just found reference to SOME ability to customise the Data Form:
    here

  5. #5
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    If you want to edit the VBA code while there is an active UDF, make the form non modal ShowModal = False, then use this basic code:
    http://www.cpearson.com/excel/vbe.htm

  6. #6
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Is the Built-in UserForm editable

    Sarah, Ray,

    The built-in UserForm is not editable. Or am I wrong?

    Sarah,
    if you are persuing this task further, please build up your own UserForm (UF) in VBE and I will provide you with some hints how to make it work like the one that is built into Excel.
    It is important though to have a ScrollBar1, a SpinButton1, four CommandButtons and a label that is renamed to 'Lab1' (will act as '# of #s' label)
    Post a reply if you are ready to continue.

    Cheers,
    Gabor

  7. #7
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    If you want to add controls at runtime, here's a reference:
    http://www.vbexplorer.com/VBExplorer.../april2000.asp

+ 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