Data Validation not seeing My Dynamic Range PLEASE HELP

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
826
Office Version
  1. 365
Platform
  1. Windows
I had the great idea of changing some of my named ranges to Dynamic Ranges.
I did not research this before doing so, now nothing shows up in my drop downs.
All I have in the Data Valadation Source Box is =INDIRECT (I28)
I have read that Dynamic and Indirect dont go together.
If someone could would you Please modify =INDIRECT (I28)
so it will work. This is very frustrating.
Thank you all
 
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Wow, I should have caught that.
Thanks you saved me again.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Biff in regards to this Thread I have managed to get all the Dynamic Ranges together.I have a sheet named "LIST" which I am trying to constuct a userform with a command button that will simply add the data in textbox1 to the last empty row in column A and textbox2 the data will go to the last empty row in column B. The code below is bits and pieces of what Ive gathered up but I cant seem to get it put together correctly.The lower part of the code suggest entering it in pairs which would be nice. Thanks Biff you have helped me alot.

Private Sub CommandButton1_Click()
Dim nxtRwE as long, nxtRwF as long
nxtRwE = Sheets("List").Range("E" & Rows.Count).End(xlUp).Row + 1
nxtRwF = Sheets("List").Range("F" & Rows.Count).End(xlUp).Row + 1
Then Textbox1.value goes to Range("E" & nxtRwE) and
Textbox2.value goes to Range("F" & nxtRwF)
If these values will always be entered as pairs you can simplify this and just have one variable nxtRwE
then Textbox1.Value goes to Range("E" & nxtRwE) and Textbox2.Value goes to
Range("E" & nxtRwE).Offset(0,1)
End sub
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Is this what you want?

Code:
Private Sub CommandButton1_Click()
    Dim NextRow As Long
    NextRow = Sheets("List").Range("E" & Rows.Count).End(xlUp).Row + 1
    Range("E" & NextRow).Value = TextBox1.Value
    Range("E" & NextRow).Offset(0, 1).Value = TextBox2.Value
End Sub
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Sorry I should not have specified them being together.
TextBox1 go to last empty row in column A
TextBox2 go to last empty row in column B
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Like this maybe:

Private Sub CommandButton1_Click()
Dim NextRow As Long
NextRow = Sheets("List").Range("A" & Rows.Count).End(xlUp).Row + 1
NextRow = Sheets("List").Range("B" & Rows.Count).End(xlUp).Row + 1
Range("A" & NextRow).Value = TextBox1.Value
Range("B" & NextRow).Value = TextBox2.Value
End Sub
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

More like:

Code:
Private Sub CommandButton1_Click()
    Dim NextRow As Long
    NextRow = Sheets("List").Range("A" & Rows.Count).End(xlUp).Row + 1
    Range("A" & NextRow).Value = TextBox1.Value
    NextRow = Sheets("List").Range("B" & Rows.Count).End(xlUp).Row + 1
    Range("B" & NextRow).Value = TextBox2.Value
End Sub
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

thanks again. big help
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Andrew is there something that can be done so if one of the textboxes has data in it then the other has to have data in it. Make since?

Private Sub CommandButton1_Click()
Dim NextRow As Long
NextRow = Sheets("List").Range("A" & Rows.Count).End(xlUp).Row + 1
Range("A" & NextRow).Value = TextBox1.Value
NextRow = Sheets("List").Range("B" & Rows.Count).End(xlUp).Row + 1
Range("B" & NextRow).Value = TextBox2.Value
End Sub
 
Upvote 0
Re: Data Valadation not seeing My Dynamic Range PLEASE HELP

Try:

Code:
Private Sub CommandButton1_Click()
    Dim NextRow As Long
    If TextBox1.Value = "" Or TextBox2.Value = "" Then
        MsgBox "Please complete both TextBoxes."
        Exit Sub
    End If
    NextRow = Sheets("List").Range("A" & Rows.Count).End(xlUp).Row + 1
    Range("A" & NextRow).Value = TextBox1.Value
    NextRow = Sheets("List").Range("B" & Rows.Count).End(xlUp).Row + 1
    Range("B" & NextRow).Value = TextBox2.Value
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top