Results 1 to 10 of 10

How to make multiple excel columns as non-editable in multiple Tabs using VBA

Threaded View

  1. #1
    Registered User
    Join Date
    02-23-2014
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    60

    How to make multiple excel columns as non-editable in multiple Tabs using VBA

    Greetings Excel Forum Team!

    Problem Statement: How to make multiple excel columns as non-editable in multiple Tabs using VBA

    In the attached spreadsheet (Test-ColumCellNonEditable.xlsm - SEP-Test Tab)
    I have column L with specific defined Range(L7 - L22) is made non editable when user clicks on Column L between L7 & L22.

    --------------------------------
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    If Not Intersect(Target, Range("L7:L22")) Is Nothing Then
    Target.Offset(, 1).Select
    MsgBox "Executed is Non-Editable"
    End If

    End Sub
    --------------------------------

    User Scenario1: Is it possible to make multiple columns with identified ranges such as below as non editable.

    Column O Range(O7 - O22),
    Column P Range(P7 - P22).


    User Scenario2:If I have multiple Tabs like 'SEP-Test', 'AUG-Test' but each Tab need same columns (L,O,P)need to be non editable but range for each Tab varies
    Is it possible to have single dynamic function that can handle above need, please let me know.

    Appreciate any help with resolution(vba function/proc) for above User Scenario's.
    Thank you.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Extracting data from multiple columns on multiple sheets / tabs etc to a common matrix
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-26-2015, 07:38 AM
  2. Extracting multiple webpages (1 website, multiple tabs) into excel using a macro
    By Rjk214 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2015, 05:27 PM
  3. [SOLVED] Importing Data from Multiple Excel Forms into Multiple Tabs in New Workbook
    By hollybo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2014, 03:42 PM
  4. Preventing Duplicate's, Multiple columns & on Multiple Tabs - Validation
    By Victoriak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2014, 04:22 AM
  5. Excel VBA - If, then, else multiple tabs and multiple columns
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-11-2014, 03:33 PM
  6. Consolidating multiple files into one excel file with multiple tabs
    By Chemistification in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2012, 06:23 AM
  7. Make specific cells or columns un-editable ?
    By leonhart1981 in forum Excel General
    Replies: 1
    Last Post: 09-08-2011, 02:44 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