Dropdownlist in Excel making active - excel

I have a planningsheet where operators are planned each day on each machine. On all machines each day are a certain operators planned. The selection of the operators is based on a skillsmatrix (data validation).
When I protect the sheet I can unlock those cells but it is still possible to copy and put the validation on another cell. (then are the requirements for that machine not correct)
So is it possible to protect a sheet, use only the data validation (dropdown) and copying, cutting, formatting cells,.. is not possible?

Related

Excel Add in - Refresh only my custom functions in a specific sheet

I want to update custom formulas added my Excel add in. Using Application/worksheet.Caclulate() updates whole sheet, but I want to update only those cells which are using my formulas.
I haven't tried this, but what if you used the technique described in Get formulas from a range of cells on the entire UsedRange of a worksheet. Then iterate through the returned array to find all the cells that have formulas matching one of yours. Then for each of those cells, call Calculate().
The Application object provides a method to force an immediate recalculation. Application.calculate(calculationType) starts a manual recalculation based on the specified calculationType. The following values can be specified.
full: Recalculate all formulas in all open workbooks, regardless of whether they have changed since the last recalculation.
fullRebuild: Check dependent formulas, and then recalculate all formulas in all open workbooks, regardless of whether they have changed since the last recalculation.
recalculate: Recalculate formulas that have changed (or been programmatically marked for recalculation) since the last calculation, and formulas dependent on them, in all active workbooks.
So, you could play with an argument to get the required piece recalculated.

Best way to modify VBA Macros when rows or columns are inserted or deleted?

I have been working on developing excel vba based forms with my little knowledge. Once in six months, Client ask to change the structure of the forms, insert few fields, delete few fields, give inputs to incorporate few conditions/logics. This is repeated every six months. Also when developing forms for current, they keep changing their inputs. It is really painful to go and edit the forms and macro at the backend which refer each cell value of the specific field/table. I have to do this for each macro present in the form(including Userform, Module, code behind sheets). Input files keep changing and non standard. Please suggest me what is the best way to do the changes in macro, Like formula in excel change automatically when you insert or delete rows or columns, move formula to another cell.

Seeking possible solutions/workarounds for creating a master Excel template

I'm trying to find solutions for creating a master template in Excel. We have almost 100 Excel workbooks where data in them varies but the formatting and cell and row layout including header names remains the same. When a row is deleted in one, it needs to be deleted in all of them. When a row header is updated, it needs to be updated in all of them. When conditional formatting changes in one, it needs to be updated in all of them. Get the gist?
Solutions I've researched that won't work:
Cell linking - only copies the data and not the format; doesn't account for adding/deleting rows/columns
Format Paint - doesn't work well between different workbooks and still needs to be applied to each workbook individually; doesn't copy conditional formatting; doesn't account for adding/deleting rows/columns
Power Query - formatting is based on the destination file and there's concern that when refreshed it would delete/overwrite all of the data specific to that workbook; doesn't copy conditional formatting
Find/replace - not ideal and doesn't work with exact match (when trying to replace AP it makes no distinction between AP or apply)
MS Access - for business reasons this needs to stay in Excel (i.e. can't use Access or other database programs); this option doesn't address the conditional formatting applied to all of the workbooks
I've seen numerous threads from people looking at how to create a master template in Excel. I get that its not possible (and I have no idea why Microsoft in all its wisdom hasn't created function yet), but what I'm looking for are possible workarounds. Right now the process can take a couple people several days to update all of the workbooks. Any work arounds that can reduce this to a single person in just a few hours would be fantastic.
Posting here in case someone has a VBA suggestion that would encompass everything I need. I'm using Excel 2010 and the workbooks are stored in a document library on SharePoint.

Excel Don't Change Data on Refresh

I have two sheets in an XLS file. 1st Sheet pulls up some data from web and updated. 2nd Sheet is analysis of the data in Sheet-1.
Now whenever I refresh data in sheet-1, the data in cells in Sheet-2 automatically refreshes. I want to stop this. I want to cells become inactive in Sheet-2 and thus don't have any impact of refresh and their values remains the same even after refresh.
How, is this possible? In other words, when I refresh I want to see the previous analysis and new analysis both. But when I refresh the same, the previous data is lost.
Disable automatic calculation (file / options / formulas), i.e. choose "Manual calculation".
Activate the import sheet that loads data from web. Calculate (i.e. refresh) this sheet only (Menu: Formulas / Calculate Sheet).
Now, the import sheet should be up to date, but the second sheet should still show the old values.
To finally synchronize both sheets again, either activae automatic calculation, or just press (forces workbook calculation incl. all sheets).

Excel: Can we prevent Paste Operation on cells

I have made one worksheet. And there I don't have option for Macro Enabled, as It is going to be distributed among lots of users to fill the information.
Now the question is, there are some data validation fields in worksheet.
If I do copy any data and paste on that field column, it takes any values in that, which is not correct.
Is there any way to prevent paste on cells without Macro code?
Thank you,
If you want to prevent ANY data entry in those cells you can mark them as locked & protect the sheet with a password.
If you want to allow editing those cells but need to validate that only certain data is allowed, you can use Data Validation, Custom & enter a formula.
You won't be able to use custom VBA functions but most standard Excel functions should work.

Resources