ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Creating a new "record" (https://www.excelbanter.com/excel-worksheet-functions/172748-creating-new-record.html)

aeddave

Creating a new "record"
 
Is there any way to have pre-formatted controls and form items (drop-down and
check boxes) appear when a certain value is input into a cell?

What I am trying to do is when a person enters a project name into column A,
a drop-down will appear in column B, and check boxes in column c.

I can place them there ahead of time, but the actual numbers of projects is
unknown.





ShaneDevenshire

Creating a new "record"
 
Hi,

Try code like this in the Sheet1 (or whatever) object:

Private Sub Worksheet_Change(ByVal Target As Range)
Set isect = Application.Intersect(Target, Range("G19"))
If Not isect Is Nothing Then
Me.CheckBox1.Visible = True
End If
End Sub

This assumes that the Checkbox is named CheckBox1 and the cell where you
enter data is G19.
--
Cheers,
Shane Devenshire


"aeddave" wrote:

Is there any way to have pre-formatted controls and form items (drop-down and
check boxes) appear when a certain value is input into a cell?

What I am trying to do is when a person enters a project name into column A,
a drop-down will appear in column B, and check boxes in column c.

I can place them there ahead of time, but the actual numbers of projects is
unknown.






All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com