+ Reply to Thread
Results 1 to 13 of 13

"Locking in" formatting

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    "Locking in" formatting

    I want to "lock in" column formats (i.e., custom formats, general, date, number, text) on a worksheet template so that data copied from another source and pasted into a cell does not change the format I locked in. I figured this would be an option in settings but I cannot find such, so I thought perhaps embedding a macro into the template would be able to accomplish this "locking in" of formats so that when a user opens the template and starts pasting in data, it maintains the locked in formatting of the template. The user then saves a non-template version of the worksheet with the data they entered. All formatting locked in even in the saved non-template version.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: "Locking in" formatting

    Hi zextrot,

    I think you are looking for the "format painter". Read about it at:

    http://www.excel-easy.com/examples/format-painter.html
    https://trumpexcel.com/excel-format-painter/

    I think you will need to have your "standard" format somewhere in your worksheet. Then copy the numbers from elsewhere and paste them in (using values only perhaps?) then copy your standard over what you just copied, using format painter.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    I follow your logic, but this would require me running a "maintenance" macro after the user does data entry. Your suggestion would streamline the process of doing that for sure. Maybe there's a way to embed the macro in the template so that when the user performs their data entry and hits the save button, it automatically runs the "format painter" maintenance macro before actually saving the document.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: "Locking in" formatting

    If you would supply a sample file with what is the standard format and what is copied in, we could try to develop a macro that would do what you request.

    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.

  5. #5
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    It's harder than it looks like it should be!

  7. #7
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    Something occurred to me while working in the garage over the weekend. What if, at the beginning of the macro, I find the last blank row and filldown the entire sheet purple. Then when it is time to filter for blanks I first filter out the color purple. This should leave only "real" blanks that I'm looking for. I'll try this later today and see if it works out.

    Anyone else have thoughts on this at all?

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: "Locking in" formatting

    Hi zextrot,

    Your thread rolled off the bottom and I didn't realize you wanted any more help with it.

    BUMP!! Anyone else have any ideas?

    It just seems to me that if you Pasted useing Values Only you would keep your original formatting. You could also start the macro recorder and go through the steps of formatting and save the recorded macro. If I understood exactly what formats you wanted on each column, that would be how I'd answer your qustion.

  9. #9
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    deleted due to edited below
    Last edited by zextrot; 06-16-2017 at 06:14 PM.

  10. #10
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    deleted due to edited below
    Last edited by zextrot; 06-16-2017 at 06:14 PM.

  11. #11
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    deleted due to edited below
    Last edited by zextrot; 06-16-2017 at 06:14 PM.

  12. #12
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    Ok i fixed the selection part .. now it selects everything i want to fill. Why won't the filter work on this color now though??
    • If I fill the range with a color, it won't let me filter it.
    • If I try to fill the range with every cell getting "xxx" i get an error message that it's too much for Excel to handle.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by zextrot; 06-16-2017 at 06:09 PM.

  13. #13
    Registered User
    Join Date
    10-14-2010
    Location
    Stephenville, Texas
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: "Locking in" formatting

    ok, changing to this makes the filtering of the color purple work .. so now i'm going to try to delete all the purple, then remove filter and hopefully be left with just my data set and no blank rows.

    Please Login or Register  to view this content.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. "Locking" a free thread vs. "locking" a Commercial Services thread
    By 6StringJazzer in forum Suggestions for Improvement
    Replies: 1
    Last Post: 01-21-2016, 02:52 PM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  6. Replies: 2
    Last Post: 09-12-2013, 10:56 PM
  7. Replies: 2
    Last Post: 08-17-2012, 05:10 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