+ Reply to Thread
Results 1 to 10 of 10

How to restrict view for users of a spreadsheet

  1. #1
    Registered User
    Join Date
    02-09-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    13

    How to restrict view for users of a spreadsheet

    I've written a spreadsheet for others to use, protected it (except for cells where data input is required). Almost like an App for sales people to prepare quotes. I want it to appear fullscreen only with formula bars and headings permanently hidden so feels the experience for the User is similar to an App.

    How on earth do I do it?

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to restrict view for users of a spreadsheet

    Hello IAN M and welcome to the forum !
    Open your spreadsheet and press alt+F11
    in the left hand side locate your workbook name then locate below Thisworkbook and double click the same a window will open then copy paste below
    and save workbook as macro enabled book
    Please Login or Register  to view this content.
    Open the attachment press Alt+F11
    left hand side locate VBA Project(Protect.xlsm) below find thisworkbook double click and you will see the code

    to copy same in your workbook
    left hand side locate VBA Project(your workbook name ) below find thisworkbook double click and copy paste the same code
    save your workbook as macro enabled book

    click " * " add reputation icon if above helps you
    Attached Files Attached Files
    Last edited by hemesh; 02-09-2014 at 06:52 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    02-09-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to restrict view for users of a spreadsheet

    Thanks for assistance!! I followed instruction but got message "Compile Error: Ambiguous name detected: Workbook_BeforeClose

    Spreadsheet is already macro enabled with
    Please Login or Register  to view this content.
    as well as

    Please Login or Register  to view this content.
    Perhaps this is confusing the issue?

    Thanks/Dankie Winon
    Attached Files Attached Files
    Last edited by Ian M; 02-09-2014 at 07:39 AM. Reason: Adding CODE tags, thanks and sample

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to restrict view for users of a spreadsheet

    Hello Ian M,

    Welcome to the Forum.

    Moderation requests removed, as OP has reponded to same.
    Last edited by Winon; 02-09-2014 at 08:00 AM.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to restrict view for users of a spreadsheet

    Ian

    that means you have two subroutines named Workbook_beforeclose
    Copy the code lines from Hemesh's Workbook_before close and incorporate them into the already existing routine
    Elegant Simplicity............. Not Always

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to restrict view for users of a spreadsheet

    Hello find the attached ! There is no problem here ! After adding your code ! As per the litch you had two WBK_Open subs
    Didn't See your file at first !
    Attached Files Attached Files
    Last edited by hemesh; 02-09-2014 at 07:49 AM.

  7. #7
    Registered User
    Join Date
    02-09-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to restrict view for users of a spreadsheet

    Thanks - got it!

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to restrict view for users of a spreadsheet

    Hello Ian M,

    Dankie vir die samewerking.

    I think AndyLitch, and hemesh managed to clear things up for you, by spotting where you went wrong with your VBA.

    If your issue has been sorted out, then please mark your thread as Solved, or do you have some other issues remaining?

    Regards

  9. #9
    Registered User
    Join Date
    02-09-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How to restrict view for users of a spreadsheet

    Hunting . . . how do I mark as solved?

    . . . . . . read the rules!! (Proving I am a normal male - read the rules only after trying first!)
    Last edited by Ian M; 02-09-2014 at 08:32 AM.

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to restrict view for users of a spreadsheet

    LOL!

    . . . read the rules!! (Proving I am a normal male - read the rules only after trying first!)
    Typical. Applies to me as well!

    Thank you for catching up so fast.

    Groete.

+ 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. View a spreadsheet live with multiple users
    By antmcg12 in forum Excel General
    Replies: 0
    Last Post: 01-30-2013, 10:39 AM
  2. Restrict users to rows
    By TonySim in forum Excel General
    Replies: 7
    Last Post: 08-18-2009, 07:35 AM
  3. Replies: 1
    Last Post: 08-17-2006, 07:45 AM
  4. restrict users
    By Restricted user access for exel workbook in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-15-2006, 11:30 AM
  5. [SOLVED] Is there any way for me to allow or restrict individual users' ab.
    By hsobah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2005, 06:06 PM

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