+ Reply to Thread
Results 1 to 2 of 2

Copy a table hidden & visible row data & paste all data

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2019 / 365
    Posts
    71

    Copy a table hidden & visible row data & paste all data

    Hi,
    Part of my code is below which works if there are no hidden columns...... I would like to change this code to:-

    1. Copy visible & hidden data in a row (Some hidden columns).
    2. Limit copy / paste to table row (not whole row on sheet).
    3. Change part of code to refer to table name & table columns.

    EG Table name = "Sub9" & Col "B" = "Sub SN"

    Thinking about it...... Is there a code that selects all row data using table header names?


    lCol = Cells(Target.Row, Columns.Count).End(xlToLeft).Column
        Range(Cells(Target.Row, 2), Cells(Target.Row, lCol)).Copy
        Sheets("Completed Log").Range("B" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues

    If someone could help with this I would change all my code for "tables"

    P.s Using excel 2010 - 2016

    Thanks

  2. #2
    Registered User
    Join Date
    06-25-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2019 / 365
    Posts
    71

    Re: Copy a table hidden & visible row data & paste all data

    Example attached
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA code for copy visible data and paste in another sheet
    By bolla mani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2015, 05:19 AM
  2. Copy and Paste VISIBLE rows not hidden
    By booney440 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2015, 08:03 AM
  3. vba to copy a picture from a hidden sheet and paste in visible sheet?
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-30-2015, 10:21 AM
  4. Replies: 0
    Last Post: 10-10-2014, 02:02 PM
  5. Use visible rows from autofilter to build Pivot table. Or use visible rows to Copy/Paste
    By mwhitedesigns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 10:34 AM
  6. Copy & Paste data INCLUDING hidden cells? (Excel 2003)
    By EI-ALEX in forum Excel General
    Replies: 2
    Last Post: 08-09-2010, 03:52 PM
  7. Delete adjacent (hidden) data when deleting visible data
    By delirium in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-21-2009, 12:02 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