+ Reply to Thread
Results 1 to 7 of 7

View data from form control button

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    View data from form control button

    Is it possible to configure the workbook so the user can view the data in the worksheet from the form and I can hide the actual worksheet so that the data in the workshhet cannot be changed? Or maybe there is a better way all together??

    I am attaching a copy of the worksheet.

    Second, Is there a better way to input a code that would allow a search for duplicates in certain fields to be flagged (other than the color coding?)
    Last edited by julie d; 08-17-2009 at 01:36 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: View data from form control button

    Could you protect the worksheet by using ws.unprotect at the start of cmdadd and ws.protect at the end.

    this will let you view the worksheet and disallow and changes to be made while viewing the sheet.

    hope this helps in some way

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: View data from form control button

    You can hide the aplication on initialising the userform. You have to be extremely careful that your code also restores the aplication o else you will find that he user has a hidden instance of excel running. I've tidied up your code & added the code to hide/unhide Excel
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    06-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: View data from form control button

    Roy,
    I cleaned up the code as you indicated and added the code to hide the excel, that works great as a bonus feature. I'm sure I am confusing about what I am trying to do(I'm easily confused) The person entering the data has to see the data (actually they only need to see if the data they entered matches existing data) BUT I am trying to make it so they cannot change previously entered data. Hopefully that makes sense.
    Julie d

  5. #5
    Registered User
    Join Date
    06-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: View data from form control button

    DRennie,
    That sounds worth a try- I will try to figure out how to do that.
    Julie d

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: View data from form control button

    The code will work on any sheet because you set it to
    Please Login or Register  to view this content.
    The data sheet does not need to be visible or active

  7. #7
    Registered User
    Join Date
    06-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: View data from form control button

    I am still having the same original problem in that the user can manipulate data on the worksheet. I would like that to be view only by anyone but the administrator.
    Last edited by julie d; 08-10-2009 at 03:27 PM. Reason: Better Wording

+ 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