Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
thom hoyle
 
Posts: n/a
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
move data to a single cell and at the same same time filter the da Ann Excel Discussion (Misc queries) 1 April 4th 05 02:47 PM
Add data to cell w/o loosing initial data jaycain Excel Discussion (Misc queries) 2 March 29th 05 02:23 AM
Data Validation DLM Excel Discussion (Misc queries) 2 February 22nd 05 02:26 AM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
how to add two data validation lists to a single cell? Mike Peter Excel Worksheet Functions 1 December 8th 04 08:22 PM


All times are GMT +1. The time now is 09:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"