Private Sub Worksheet_Change(ByVal Target As Range) Dim wbSource Dim cboTemp As OLEObject Dim ws As Worksheet Set ws = ActiveSheet Set wbSource = Workbooks.Open("..\InputData.xlsx") Set cboTemp = ws.OLEObjects("ComboBox4") On Error Resume Next With cboTemp .Visible = True .Left = Target.Left .Top = Target.Top .Width = Target.Width + 15 .Height = Target.Height + 5 .ListFillRange = "'[InputData.xlsx]Availability'!$B$2:$C$9" .LinkedCell = Target.Address End With cboTemp.Activate wbSource.Close End Sub
wbSource.Close
cboTemp.Activate
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)