Question : Autocomplete a cell based on the update of another cells contents

Hello all,

I have a spreadsheet I made for printing labels but to avoid user error in entering one of the fields incorrectly I need it to be autofilled with the contents of another cell.

By "filled" I mean it can't be a formula as the user still needs to override it in the event it needs to be different. The contents of the other cell changes with a dropdown.

E.g.

Cell A1 updates to whatever Cell A2 has.
Cell A1 can be changed whilst Cell A2 remains the same.

In the event Cell A2 is modified for whatever reason (in this case a dropdown) the contents of Cell A1 are updated again but can be changed.

I'd really appreciate your help on this :)

Answer : Autocomplete a cell based on the update of another cells contents

Okay it is done :]

Because the cell G6 changes based on the formula, we will get change event of C2. So this new code works:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim KeyCells As Range
    Set KeyCells = Range("C2")
    
    If Not Application.Intersect(KeyCells, Range(Target.Address)) _
           Is Nothing Then
Application.ScreenUpdating = False
    If Target.Address = "$C$2" Then
       Range("C4").Value = Range("G6").Value
    End If
    Application.ScreenUpdating = True
    End If
End Sub
Random Solutions  
 
programming4us programming4us