Results 1 to 133 of 133

Please comment on what each row is about to do

Threaded View

  1. #1
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Please comment on what each row is about to do

    These are the sheets that this code should refer to PLUS sheet 20 which hold all of the data

    Is there a problem with the coding ??


    Sheets 4 to 17 inclusive
    
    VKATV", "VKDStar", "VK23cm", "VKDMR", "VKC4FM", "VKP25", "VK1", "VK2", "VK3", "VK4", "VK5", "VK6", "VK7",  "VK8".
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


    If possible I would like a BRIEF description as to what each line ( If possible) is about to do, so I can learn more about VBA...
    
    Sub splitVK()
    Application.ScreenUpdating = False
    With Sheet20
        If .FilterMode Then .ShowAllData
        For vk = 3 To 17
            .Cells(1).CurrentRegion.AutoFilter 1, "VK" & vk & "*"
            With .AutoFilter.Range
                If .Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count - 1 > 0 Then
                   .Offset(1, 0).SpecialCells(xlCellTypeVisible).Copy Worksheets("VK" & vk).Range("A" & Rows.Count).End(xlUp).Offset(1)
                   ' As suggested above code
                End If
            End With
            
        Next
        .ShowAllData
    End With
    Application.ScreenUpdating = True
    End Sub
    Last edited by Potholes; 06-04-2019 at 02:02 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Function to return comment from a cell, or null string if no comment
    By Monkihunta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2017, 01:01 PM
  2. [SOLVED] Show comment on mouse over cell rather than over comment icon....?
    By BellyGas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2015, 09:05 AM
  3. Check if cell in range is empty, if it is delete comment else format comment to
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2015, 01:15 AM
  4. Copy contents of multiple comment boxes and paste in a single comment box
    By xxJaRxx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-14-2014, 12:39 PM
  5. Add timestamp to comment upon comment creation (Excel 2007)
    By Shadyhaxx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2013, 12:58 PM
  6. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  7. Replies: 0
    Last Post: 09-04-2008, 01:35 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