+ Reply to Thread
Results 1 to 11 of 11

Required Cells

  1. #1
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8

    Required Cells

    I have a workbook with multiple worksheets. I would like to make one of those worksheets have a range of cells that are required to be filled in prior to the workbook being saved.

    I also would like to create a message box that appears upon activation of the workbook.

    Can anyone please help me? I've been working on this for hours!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Required Cells

    Hi LaDonna,

    Do you need all the cells to be filled in before workbook can be saved or filling in some cells in the range will allow that?
    Suggest you to share the range of cells and worksheet name. If possible share the sample file as well. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Required Cells

    Hi LaDonna,

    Do you need all the cells to be filled in before workbook can be saved or filling in some cells in the range will allow that?
    Suggest you to share the range of cells and worksheet name. If possible share the sample file as well. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: Required Cells

    Copy this into ThisWorkbook - adjust as needed...
    Please Login or Register  to view this content.
    Last edited by dangelor; 01-11-2012 at 01:54 PM.

  5. #5
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8

    Re: Required Cells

    Well the worksheet I want to apply the code to is called INFOSHEET and the cell ranges are A3-A13. I would like a messagebox to appear that says something like "oops you forgot to enter...."

    I have applied the code, but it won't let me create the macro?!? Maybe I'm doing this all wrong.

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: Required Cells

    Try this...
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8

    Re: Required Cells

    Quote Originally Posted by dangelor View Post
    Try this...
    Please Login or Register  to view this content.
    Thank you so much!!!! But I know this makes me sound like an idiot.... but do I need to create a macro?? Or just paste this and be done with it?

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Required Cells

    Hi LaDonna,

    Copy below code and press Alt+F11 on your Excel screen, now look for your workbook in left pane, expand the selection and double click on "This workbook". Paste below code on the right window and save.
    As the code is built up, you might need to fill in the range a2: a13 to save the workbook.

    Please Login or Register  to view this content.
    Let us know if you need further help.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  9. #9
    Registered User
    Join Date
    10-23-2008
    Location
    North Carolina
    Posts
    8

    Re: Required Cells

    You guys are awesome! quick question... I have excel 2010 and it disables macros everytime I open it, is there a way to make sure that whoever opens the file enables their macros to open it?

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Required Cells

    you are welcome LaDonna..

    Cheers

    To answer your second question, Excel gives an option to user to enable / disable the macro and here user needs to simply enable them.


    Regards,
    DILIPandey


    <click on below 'star' if this helps>

  11. #11
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,275

    Re: Required Cells

    It's never stupid to question here...

    The code is a macro, actually 2 of them. Just paste in the ThisWorkbook module in the VBA Project window (Alt+F11) (not in a regular code module) and they should work.

+ 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