Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to have a small form pop up or msgbox that pops up when the
user is in a particular column so I can show error entry codes. I am not sure of how to achieve this, it must detect that the user changed the column and then show entry data permissable for that row. Advice much appreciated. Regards Peter |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Peter,
This may get a bit annoying every time anyone goes into that column! But this code will do it for column 3, C Private Sub Worksheet_SelectionChange(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Target.Column = 3 Then MsgBox "yourmessage" End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH RP (remove nothere from the email address if mailing direct) "Peter Bailey" wrote in message ... I would like to have a small form pop up or msgbox that pops up when the user is in a particular column so I can show error entry codes. I am not sure of how to achieve this, it must detect that the user changed the column and then show entry data permissable for that row. Advice much appreciated. Regards Peter |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Peter
have you checked out Data / Validation - this might meet your needs without having to do any coding at all. Debra Dalgleish has extensive notes and examples at her site www.contextures.com/tiptech.html Regards JulieD "Peter Bailey" wrote in message ... I would like to have a small form pop up or msgbox that pops up when the user is in a particular column so I can show error entry codes. I am not sure of how to achieve this, it must detect that the user changed the column and then show entry data permissable for that row. Advice much appreciated. Regards Peter |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Data Validation will do the pop-ups for you. You set the criteria and the
message. On the menu select Data/Validation. Mike F "Peter Bailey" wrote in message ... I would like to have a small form pop up or msgbox that pops up when the user is in a particular column so I can show error entry codes. I am not sure of how to achieve this, it must detect that the user changed the column and then show entry data permissable for that row. Advice much appreciated. Regards Peter |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I forgot to say I tried the data validation pop up box but its limited to so
many characters and it wasnt enough for my case. "Peter Bailey" wrote in message ... I would like to have a small form pop up or msgbox that pops up when the user is in a particular column so I can show error entry codes. I am not sure of how to achieve this, it must detect that the user changed the column and then show entry data permissable for that row. Advice much appreciated. Regards Peter |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creation Date | Excel Discussion (Misc queries) | |||
form creation | Excel Discussion (Misc queries) | |||
Form Creation in Excel 2007 | Excel Discussion (Misc queries) | |||
Macro for Multiple Form Creation | Excel Discussion (Misc queries) | |||
Can Excel use as a VB form creation? | Excel Programming |