![]() |
Data Validation Cell - Move to UserForm
I'm using Data Validation in a cell that creates a dropdown list. Then it
populates below it based on my selection: Code: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Row = 3 And Target.Column = 3 Then 'calculate criteria cell in case calculation mode is manual Worksheets("ProductsList").Range("G2").Calculate Worksheets("ProductsList").Range("Database") _ .AdvancedFilter Action:=xlFilterCopy, _ CriteriaRange:=Sheets("ProductsList").Range("G1:G2 "), _ CopyToRange:=Range("B6:C6"), Unique:=False End If End Sub I don't know how to move this onto a userform to work. The Userform I currently use has several combo Boxes, Text Boxes.. etc... The user must first select the DataValidation prior to opening the UserForm.. I would like to combine this into the UserForm to elimate the extra Step... thanks thomas |
All times are GMT +1. The time now is 01:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com