How to Lock the data in a cell in excel using vba
I want to stop others from editing the cell contents in my excel sheet using VBA. Is it possible to do this?
136 expert-verified Q&A posts in this category, sourced from the top-voted answers on Stack Overflow.
I want to stop others from editing the cell contents in my excel sheet using VBA. Is it possible to do this?
I have an array like this: Dim aFirstArray() As Variant How do I clear the entire array? What about a collection?
I have multiple lists that are in separate columns in excel. What I need to do is combine these columns of data into one…
I need to find out the first cell and the last cell of a vertically merged cell.. Let's say I merge Cells B2 down…
I'm trying to write a macro that copies the content of column 1 from sheet 1 to column 2 on sheet 2. This is…
I have an image in cell (3,1) and would like to move the image into cell (1,1). I have this code: ActiveSheet.Cells(1, 1).Value =…
Can you create an Excel VBA function that returns an array in the same manner as LINEST does, for example? I would to create…
Is there a way to force garbage collection in VBA/Excel 2000? This question refers to the Macro language in Excel. Not using VB .NET…
Given Select Case cmd case "ONE": MsgBox "one" case "TWO": MsgBox "two" case "THREE": MsgBox "three" End select My requirement is if cmd =…
The following VBA code (Excel 2007) is failing with Error 1004, "Autofill Method of Range Class Failed.". Can anyone tell me how to fix…