Color index on excel for plan update

Hi all

 

I am writing to you to ask for your help.

I am in the process of putting together  a plan classification file with automatic updating of indices, dates, designations in relation to a plan number.

 

In the attachment you will find the Excel file in question. Let me explain how it works.

On the first page there is a database ("Map Data") in which I manually reference the number of the plan, its designation, its index and its date. On the second page, a form ("Identification Sheet") in which all the plans concerned by the identification sheet are found with their designation, index and date. The lines are filled with the "VLOOKUP" function in relation to a plan number in the database.

 

My question is as follows. I would like the index box (in the identification sheet) to change to red when the index is updated in the database and to become yellow again when the "Shift" button is clicked.

 

I hope I have been clear enough in my explanations.

Thank you in advance for your help and time.

 

Kind regards.


liste_des_plans.xls
1 Like

Hello

To sum up:

- if the index is different on the 2 pages, RED, 

- if we click on SHIFT: all the clues turn yellow.

Is that right?

2 Likes

Hello

First, why does the file have a .xls extension. What version of Excel do you have?

In your file there are plenty of visual basic modules with macros that seem useless. Can you delete them and leave only the useful ones to improve understanding.

1 Like

Is the file suitable like this:

 


liste_des_plans.xls
1 Like

Hello

I have a 2007 version of EXCEL.

Attached is the Excel file with the useful macros.

Thank you.

 


liste_des_plans.rar
1 Like

You should then use the new Excel file format in .xlsx

Then answered the question of .PL. Because we are not sure how we want it to work.

Changing the color of the index boxes is appropriate. Thank you.

However, for the color update feature. I saw that you did a macro. I don't see its effect and functioning.

1 Like

When you click on SHIFT, it updates the value from the second page (re-entered) to the first, then it replaces the value of the second page with the original formula that was there before entering the value by hand.

Is this the intended operation?

1 Like

No, that's not it. Excuse me, I have trouble expressing myself.

When I use the excel file, I work on the "database" sheet. The database is linked to the identification sheet and is updated in parallel when I modify a clue in the database for example.

So when I change the index in the database, I want the index box in the identification sheet to turn red when I change. I also wish in a second step. By clicking on the UPDATE button, the entire index column in the identification sheet goes back to yellow (after validation of the sheet).

Thank you for your time.

1 Like

The sheet you are talking about "Database" is the "Map data" sheet in the Excel file?

Yes, it's the "map data" sheet.

1 Like

Ah ok, so it's not possible or at least much more complicated than I thought, because you have to store a value that can be changed at any time.

So making a macro that "runs" constantly, which is not great.

But let's wait and see if other people have any interesting proposals.

2 Likes

All right. I'll be patient.

I'm going to think about it myself.

In any case, thank you for your help.

 

1 Like

I think it would have been wiser to choose one of my answers. It doesn't really motivate you to answer future questions! 

1 Like