+ Reply to Thread
Results 1 to 5 of 5

VBA programming exercise

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    belgium
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA programming exercise

    Hi,

    I am freshman student and i have this assignment and in I need to get it to work, but I dont know how to do this. Can anyone help me , please?

    assignment:

    Call up a message box asking if the user would like to give an additional remark. The window has buttons 'yes' and 'no'. If 'yes' is pushed open a form with a text box where the comment is registered. The comment is also entered in cell B2 on Sheet2. If "no" is pressed, the user will get a thank you for his cooperation. Furthermore, nothing happens. Use a public string 'note' to read from the text box on the form and fill in appropriate cell classification. (Dim defines a local variable and is known only within that particular procedure!). Assigning the value "note" occurs each change in the value in the text box.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: VBA programming exercise

    These are very basic commands. You should look through your book to see the answer and at least attempt it before coming here for help. Once you try it, if it is not working, post up your code, and someone will help you out.

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: VBA programming exercise

    Which bit don't you know how to do?

  4. #4
    Registered User
    Join Date
    11-22-2013
    Location
    belgium
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA programming exercise

    I think i have the code for calling the message box, besides that i got nothing. I dont know how to put all together so it can work

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: VBA programming exercise

    Have a look in the vba developer help file for the msgbox method. It will give you how to get yes/no buttons.

+ 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. Excel 2007 : Help with exercise !
    By juno28 in forum Excel General
    Replies: 3
    Last Post: 04-20-2012, 06:51 AM
  2. Columbia student exercise, Monthly > Quarterly data by Macro exercise
    By alepenn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2011, 12:04 AM
  3. Need help with a exercise
    By han83 in forum Excel General
    Replies: 1
    Last Post: 04-02-2008, 08:03 AM
  4. A 13 period exercise
    By Steved in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. A 13 period exercise
    By Steved in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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