Results 1 to 10 of 380

Thread: Appendix Thread. ( Codes for other Threads, etc.) Event Coding Drpdown Data validation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,521
    Rep Power
    10
    Solution for ( part A) ) of this Thread
    https://excelfox.com/forum/showthrea...ll=1#post14870

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address = "$J$19" Then
            If Target.Value = "" Then
             Let Application.EnableEvents = False
             Let Target.Value = "(Select)"
             Let Application.EnableEvents = True
                With Target.Font
                .Color = 10855845
                '.ColorIndex = 48
                End With
            ElseIf Target.Value = "Nuclear Family" Or Target.Value = "Joint Family" Then
             Let Application.EnableEvents = False
             Let Range("R19").Value = "(Remark if any)"
             Let Application.EnableEvents = True
                With Range("R19").Font
                .Color = 10855845
                '.ColorIndex = 48
                End With
            ElseIf Target.Value = "Single-Parent Family" Then
             Let Application.EnableEvents = False
             Let Range("R19").Value = "(Select Reason)"
             Let Application.EnableEvents = True
                With Range("R19").Font
                .Color = 10855845
                '.ColorIndex = 48
                End With
            ElseIf Target.Value = "Uncategorised" Then
             Let Application.EnableEvents = False
             Let Range("R19").Value = "(Please Specify the Case)"
             Let Application.EnableEvents = True
                With Range("R19").Font
                .Color = 10855845
                '.ColorIndex = 48
                End With
            End If
        Else
        ' Target is Not a cell to be acted on
        End If
    End Sub
    
    'Row\Col     AM  AN  AO  AP  AQ  AR  AS  AT  AU  AV  AW  AX  AY  AZ  BA  BB
    '16                                          (Select Here)
    '16  Nuclear Family                          (Remark if any)
    '17  Joint Family                            (Remark if any)
    '18  Single-Parent Family                    (Select Reason)
    '19                                      Expired
    '20                                      Divorced
    '21                                      Break -Up
    '22                                      Abandonment
    '23                              Enter Reason Manually
    '24  Joint Family                            (Please Specify the Case)
    
    
    
    'Print Range("AM15").Font.ThemeColor
    '7
    'Print Range("AM15").Font.TintAndShade
    '0
    'Print Range("AM15").Font.Color
    '10855845
    'Print Range("AM15").Font.ColorIndex
    '48
    'Print Range("AM16").Font.TintAndShade
    '0
    'Print Range("AM16").Font.Bold
    'Falsch
    'Print Range("AM16").Font.Color
    '6751362
    'Print Range("AM16").Font.ColorIndex
    '13
    'Print Range("AM16").Font.Bold
    'Falsch
    'Print Range("AT19").Font.TintAndShade
    '0
    'Print Range("AT19").Font.Color
    '0
    'Print Range("AT19").Font.ColorIndex
    '-4105
    'Print Range("AT19").Font.Bold
    'Falsch
    Last edited by DocAElstein; 08-31-2020 at 03:35 PM.

Similar Threads

  1. Replies: 189
    Last Post: 02-06-2025, 02:53 PM
  2. Replies: 293
    Last Post: 09-24-2020, 01:53 AM
  3. Appendix Thread. Diet Protokol Coding Adaptions
    By DocAElstein in forum Test Area
    Replies: 6
    Last Post: 09-05-2019, 10:45 AM
  4. Restrict data within the Cell (Data Validation)
    By dritan0478 in forum Excel Help
    Replies: 1
    Last Post: 07-27-2017, 09:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •