+ Reply to Thread
Results 1 to 2 of 2

How to make Macro to lock certain cells connected to another cells value, then copy daily

  1. #1
    Registered User
    Join Date
    03-29-2014
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question How to make Macro to lock certain cells connected to another cells value, then copy daily

    Hello,

    am making Excel for private use, i need the following makro to be active, here is the idea because i didnt yet work with makros at all:

    If A1 = False
    then Range B1:D1 will be locked cells

    If A1 = True
    then Range B1:D1 will be unlocked cells

    Those rules apply to 1 day in the year.

    the range A1:D1 will be copied about 400 so the makro should be active to each day separatly.

    Check the picture attached for example of one day

    Thank you in advance,
    Regards,
    Rami

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make Macro to lock certain cells connected to another cells value, then copy da

    No VBA needed.

    1) Select B1:D1
    2) Open the Data > Data Validation window
    3) Apply the settings:

    Allow: Custom
    Source: =$A1=TRUE


    That's it. Now you will only be able to type in those 3 cells while A1 is set to TRUE.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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: 2
    Last Post: 09-12-2012, 05:32 PM
  2. How to create 2d line Graph using connected cells of about 750 times using Macro???
    By diljeet1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2012, 01:54 AM
  3. Macro to lock cells
    By dshilan in forum Excel General
    Replies: 1
    Last Post: 09-12-2011, 04:11 PM
  4. Replies: 1
    Last Post: 01-30-2011, 08:21 PM
  5. Copy cells from a excel file that filename changes daily.
    By gumby in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2006, 11:30 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