+ Reply to Thread
Results 1 to 2 of 2

Protect the only the merge cells for edition.

  1. #1
    Registered User
    Join Date
    08-06-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Cool Protect the only the merge cells for edition.

    Hello,

    Can anybody help me, way to protect the merged cells (in blue) for editon and leave the others cells unprotected.

    Best regards,
    FS
    Attached Images Attached Images

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

    Re: Protect the only the merge cells for edition.

    Hi FS,

    If you don't already have a solution, or moved on to something new, the following Macro should help you in an Ordinary Code module such as Module1:
    Please Login or Register  to view this content.
    To enable Macros and to Run Macros see the following:
    http://office.microsoft.com/en-us/ex...010031071.aspx
    http://office.microsoft.com/en-us/ex...010014113.aspx
    If help is still needed do a google search for 'youtube excel enable macro' and/or 'youtube excel run macro'.

    To access Visual Basic (VBA) see:
    http://www.ablebits.com/office-addin...a-macro-excel/
    a. Click on any cell in the Excel Spreadsheet (may not be needed).
    b. ALT-F11 to get to VBA.
    c. CTRL-R to get project explorer (if it isn't already showing).
    d. Double Click on a 'Module Name' in 'Project Explorer' to see code for that module.

    To add a module in the VBA Editor:
    a. 'Left Click' on any cell in the Excel Spreadsheet.
    b. ALT-F11 to get to VBA.
    c. CTRL-R to get project explorer (if it isn't already showing).
    d. 'Right Click' on the Project or on any module in 'Project Explorer'.
    e. Insert > Module
    f. To rename the Module press 'F4' to access the 'Properties' Window (if the 'Properties' Window is not already visible)
    g. To the right of the (Name) Property, type in the New Name. The name MUST be unique and VBA must be DORMANT (i.e. no Macros running).

    It is a best practice to declare all variables. If you misspell a variable in your code, VBA will silently assume it is a Variant variable and go on executing with no clue to you that you have a bug. Go to the VBA development window, click Tools, Options, and check "Require Variable Declaration." This will insert the following line at the top of all new modules:
    Please Login or Register  to view this content.
    This option requires all variables to be declared and will give a compiler error for undeclared variables.

    Debugger Secrets:
    a. Press 'F8' to single step (goes into subroutines and functions).
    b. Press SHIFT 'F8' to single step OVER subroutines and functions.
    c. Press CTRL 'F8' to stop at the line where the cursor is.
    d. 'Left Click' the margin to the left of a line to set (or clear) a BREAKPOINT.
    e. Press CTRL 'G' to open the IMMEDIATE WINDOW. 'debug.print' statements send their
    output to the IMMEDIATE WINDOW.
    f. Select View > Locals to see all variables while debugging.
    g. To automatically set a BREAKPOINT at a certain location put in the line:
    'Debug.Assert False'
    h. To conditionally set a BREAKPOINT at a certain location put in lines similar to:
    if i >= 20 and xTV20 > 99.56 then
    Debug.Assert False
    endif
    i. A variable value will be displayed by putting the cursor over the variable name.

    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] need to merge data and protect the formulas
    By Red fuji in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2015, 12:46 PM
  2. Excel 2013 - Protect Range of Cells without using Protect Sheet Button
    By caf20012 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-23-2014, 04:50 AM
  3. [SOLVED] Why can't I use XML in the Student and Teacher Edition?
    By gunnyusmcret in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-26-2006, 04:30 PM
  4. [SOLVED] Why can't I use XML in the Student and Teacher Edition?
    By gunnyusmcret in forum Excel General
    Replies: 6
    Last Post: 01-26-2006, 04:26 PM
  5. Why can't I use XML in the Student and Teacher Edition?
    By gunnyusmcret in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2006, 02:00 PM
  6. [SOLVED] Why can't I use XML in the Student and Teacher Edition?
    By gunnyusmcret in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2006, 12:55 PM
  7. [SOLVED] MERGE CELLSHow to merge two cells in excel?
    By laure abbass in forum Excel General
    Replies: 1
    Last Post: 11-10-2005, 01:50 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