+ Reply to Thread
Results 1 to 6 of 6

How to block a cell depending on the value of another cell

  1. #1
    Registered User
    Join Date
    07-10-2022
    Location
    Madrid, Spain
    MS-Off Ver
    365
    Posts
    3

    How to block a cell depending on the value of another cell

    I have a challenge in front of me that I am not able to solve. Any help or documentation is welcome.

    I have had to pull up some Excel templates to be able to import data into a CRM. So far so good. The problem is that in the CRM we have implemented a hierarchy using Business Rules that using the Excel templates does not work.

    I have been reading about the creation of macros and also about the data validation to find the solution but I am not able to do it because I have no knowledge about Excel.

    Here I add a small graphical demonstration of what I am trying to implement, although so far with little success.

    Any help, similar examples, documentation or suggestions would be a great help, thank you all very much!
    Attached Images Attached Images
    Last edited by NoMeSaleNada; 07-10-2022 at 02:16 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: How to block a cell depending on the value of another cell

    1) Copy this code.
    2) Right-Click the sheet tab of interest.
    3) Select "View Code"
    4) Paste the code into the window that appears.
    5) Save the file as a macro-enabled .xlsm file.
    6) Change all the instances of "Table1" to the name of your data table

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    07-10-2022
    Location
    Madrid, Spain
    MS-Off Ver
    365
    Posts
    3

    Re: How to block a cell depending on the value of another cell

    Thanks so much!! It was exactly what i was looking for

  4. #4
    Registered User
    Join Date
    07-10-2022
    Location
    Madrid, Spain
    MS-Off Ver
    365
    Posts
    3

    Re: How to block a cell depending on the value of another cell

    Many Thanks!!

    The CRM only allow .xml .csv .txt .xlsx y .zip.

    Is any chance to have macros in any of these formats?

    Because now i have a .xlxm file.

  5. #5
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,359

    Re: How to block a cell depending on the value of another cell

    Maybe save a copy as CSV or XLSX and then import that rather than importing the Macro file?
    If things don't change they stay the same

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: How to block a cell depending on the value of another cell

    You can use Excel's Save As function to save a copy of your file as any of these formats: .xml .csv .txt .xlsx

+ 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] Conditional formatting of cells of data block based on cell value in data block?
    By AleXSR700 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-25-2020, 02:03 AM
  2. Replies: 1
    Last Post: 01-13-2019, 04:52 PM
  3. [SOLVED] How to Block a cell if a specific cell do not input certain Value
    By JESSHOR60 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2015, 04:51 AM
  4. Protect or Block a Cell Based on Value in Another Cell
    By dnamertz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2014, 09:09 AM
  5. copy a cell multiple times depending on cell value starting on a specific cell
    By weritadiojomiel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2013, 05:25 AM
  6. Replies: 9
    Last Post: 12-09-2011, 04:39 AM
  7. Replies: 2
    Last Post: 10-12-2008, 01:34 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