Data validation box popup when select Col A in first empty row, then delete when next cell selected

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

I've put this code together from other bits and pieces in my workbook but it needs gluing together properly and I'm stuck!

I need the below to run only in sheet 'Training Log' when Col A in first empty row is selected:
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal target As Range)
If Range("A23358").End(xlUp).Offset(0, 0).Select then ' select Col A in first empty row
With Application
        .SendKeys "i"
        .Dialogs(xlDialogDataValidation).Show  ' show data validation input box with below msg
    .InputTitle = "Reminder"
    .InputMessage = "For Indoor Bike, key Control+\ now"
End With
End If
End Sub

(I got the validation box but no msg - the Input title/msg errored 438 - Object doesn't support property or method)

Then when another cell is selected I need the validation input message clearing.

Many thanks!
 
Last edited:
BTW, I hope you are backing up the "Exercise Log" workbook on a regular basis !
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
As we Brits used to say, "I've got more backups than you've had hot dinners" (or something like that) - I've amassed hundreds cos it backs up on close. I could probably delete most of them but I keep them just in case.
 
Upvote 0
Haha, absolutely. I've still got all my old race t-shirts and medals :cool:
 
Upvote 0
Haha, absolutely. I've still got all my old race t-shirts and medals
that explains the hundreds (maybe thousands) of lines of commented code in your workbook....:cool:
 
Upvote 0
Yes, that's useful, thanks Michael "I might use that one day" but seriously, I can't have any text in that column as it's a date column - I guess (as ever) I should have explained that's why I was wanting to use DV.
 
Upvote 0
So, did the code wortk or not ??
AND
I can't have any text in that column as it's a date column.....so why not sinmply have the code select the cell and insert the date ??
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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