+ Reply to Thread
Results 1 to 2 of 2

Send form after replacing formulas by values

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    36

    Send form after replacing formulas by values

    I start with a file called "A.xlsm"

    This file is an excel form, used as an request sheet. Some user data are retrieved automatically based upon the user ("Value = Environ("Username")". The macro I am writing, saves the file as "B.xlsm" before putting it in an outlook message that goes to a colleague.

    When that colleague opens the file, his own user data overwrite the original user data, for obvious reasons.

    I therefore want to freeze some (NOT ALL !) cells in the B-file, letting the A-file unchanged.

    How ?

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Send form after replacing formulas by values

    Hi jokkebal,

    Try the following steps (Macro Recorder should help you develop VBA code):
    a. In File A.xlsm, savecopyas B.xlsm.
    b. Open B.xlsm
    c. Select a sheet
    d. Unprotect the Sheet
    e. Unlock all cells in the Sheet (Home > Select all cells > Format > Format Cells > Protection > Uncheck Locked > OK
    f. Select and lock cells as required
    g. Protect the Sheet
    h. Save the file

    I hope this helps.

    If you need additional help, please upload a sample workbook indicating what sheet and what cells you want to protect.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Lewis

+ 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. [SOLVED] Send Values Between Form Controls VBA
    By Excel4444 in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2016, 02:10 PM
  2. replacing values in linked formulas
    By tkh007 in forum Excel General
    Replies: 1
    Last Post: 07-06-2010, 01:45 AM
  3. Copy & send single sheet with values and no formulas
    By Sven in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2008, 04:56 PM
  4. Copy & send single sheet with values and no formulas
    By az-man in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2007, 10:48 PM
  5. Automate replacing formulas with values?
    By pinny in forum Excel General
    Replies: 1
    Last Post: 04-28-2007, 04:25 AM
  6. Replacing Formulas with Values
    By Raman325 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2005, 02:54 PM

Tags for this Thread

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