Results 1 to 3 of 3

On Sheet code for Muti-Row Selection

Threaded View

  1. #1
    Forum Contributor sorensjp's Avatar
    Join Date
    12-23-2015
    Location
    Yokosuka, JP
    MS-Off Ver
    2007 and 2016
    Posts
    196

    On Sheet code for Muti-Row Selection

    Hello All,

    I'm looking to select Multiple Rows using a specific column of cells on "WEPS QUAL REPORT" Sheet. I'm have Target Column set to Wingdings 2 Font to create a Check Mark.

    I would like to Place the selected Row number in A21:B40. Ultimately I intend on creating a User form to add Dates to selected Cells for each selected Row. I'm having problems getting past this point.

    The on Sheet code below (sh06) is what I was tinkering without success.

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Application.EnableEvents = False
    If Not Intersect(Target, Range("R17:R417")) Is Nothing Then
       Select Case Target.Value
            Case "P": Target.Value = ""
            Case Empty, "": Target.Value = "P"
        End Select
    Dim Cell As Range
    If Target.Count > 1 Then Exit Sub
     'TurnOffFunctionality
     For Each Cell In Selection
        Range("A21").Value = Range("A21").Value & "(" & Cell.Row & ")"
     
    Next Cell
     'TurnOnFunctionality
     Else:
        Range("A21").Value = "(" & Target.Row & ")"
     End If
    End If
    
    Application.EnableEvents = True
    
    End Sub
    Attached Files Attached Files
    Last edited by davesexcel; 08-19-2020 at 07:58 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sumproduct with Muti IF
    By cyliyu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-12-2019, 02:56 AM
  2. [SOLVED] Trouble with code for sheet selection action
    By YenteDS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2017, 09:42 PM
  3. Replies: 2
    Last Post: 02-03-2017, 05:32 PM
  4. muti vaient formula
    By eddie64 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-26-2016, 12:43 PM
  5. Sheet Selection VBA Code is not working properly
    By robrobet in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-10-2014, 12:39 PM
  6. Replies: 0
    Last Post: 06-28-2012, 01:08 AM
  7. Muti find & replace function
    By junada0 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2010, 02:34 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1