Results 1 to 4 of 4

Can't add DropLists automatically to new row in Table

Threaded View

Ochimus Can't add DropLists... 09-15-2019, 06:30 PM
Akuini Re: Can't add DropLists... 09-15-2019, 07:34 PM
Ochimus Re: Can't add DropLists... 09-18-2019, 10:28 AM
Akuini Re: Can't add DropLists... 09-18-2019, 10:44 AM
  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,465

    Can't add DropLists automatically to new row in Table

    If I select the next free row in Cols C & D (Row 5 in this example), Macro should 'copy and paste' the DropLists from the row above, then clear the contents, as shown in Cols L and M.

    Attached Code doesn't do it, but can't see why?

    Option Explicit
    Dim n As Long
    
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
        With Sheet1
        n = .Cells(.Rows.Count, "C").End(xlUp).Row + 1
        If n < 5 Then n = 5
        
        If Target.Count > 1 Then Exit Sub
        
        If Not Intersect(Target, Range("C" & n)) Is Nothing Then
            If Target = "" Then
            Target = Target.Offset(-1, 0)
            Target.Offset(0, 1) = Target.Offset(-1, 1)
            End If
        End If
        
        End With
        
    End Sub
    All solutions, suggestions or alternatives welcome as ever

    Ochimus
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Table DropLists not adding automatically to new rows
    By Ochimus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2019, 03:43 AM
  2. Replies: 7
    Last Post: 11-02-2017, 02:51 AM
  3. Replies: 1
    Last Post: 10-12-2017, 02:46 AM
  4. [SOLVED] DropLists not excluding prior selections
    By Ochimus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 04:05 PM
  5. Help, dependent combo boxes or droplists
    By jomacho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 05:18 PM
  6. Preventing duplicate entries with droplists
    By trung95 in forum Excel General
    Replies: 5
    Last Post: 10-23-2012, 11:56 AM
  7. Droplists
    By mqdias in forum Excel General
    Replies: 1
    Last Post: 12-06-2011, 10:13 PM

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