+ Reply to Thread
Results 1 to 5 of 5

How to Copy/Paste Visible Cells Value on one line of FBA

  1. #1
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    How to Copy/Paste Visible Cells Value on one line of FBA

    Good morning, This line of code works, but it obviously does not copy just the visible cells.

    Please Login or Register  to view this content.
    I went to modify it (like below) so that it would copy just the visible cells value (I'd like the code to be all one line) but the syntax is off. Any ideas?

    Please Login or Register  to view this content.

    thanks!
    Last edited by davesexcel; 02-02-2021 at 09:32 AM.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: How to Copy/Paste Visible Cells Value on one line of FBA

    I'm pretty sure that when you are assigning values from one range to another, both ranges need to be the same size.

  3. #3
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: How to Copy/Paste Visible Cells Value on one line of FBA

    Thanks!

    I believe that the range is the same size. I just need to pull the "visible" portion of the range.

    The syntax error goes away if I remove the ".value", but then it still does not paste the visible cells only.

  4. #4
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: How to Copy/Paste Visible Cells Value on one line of FBA

    To be clear, I did cross post this issue to one other form:

    https://www.mrexcel.com/board/thread...f-vba.1160398/

    If they solve it there I'll be certain to mark it as solved here and advise what the resolution was.

  5. #5
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: How to Copy/Paste Visible Cells Value on one line of FBA

    Thank you for your help, this has been resolved with this code:

    PS.Range(PS.Cells(1, ColItemID), PS.Cells(lastrow, ColItemID)).SpecialCells(xlCellTypeVisible).Copy PSU.Range("a1")

+ 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. Replies: 0
    Last Post: 07-07-2020, 03:45 AM
  2. Copy Visible Date and Paste into Visible Cells only
    By vikas_newports in forum Excel General
    Replies: 14
    Last Post: 07-01-2020, 01:43 PM
  3. Copy-Paste formatting of visible cells to visible cells
    By hansaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2018, 04:29 PM
  4. Copy/paste visible cells only?
    By Royser12345 in forum Excel General
    Replies: 3
    Last Post: 03-02-2014, 01:52 PM
  5. Copy Visible cells and paste values only to visible target cells
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2010, 04:09 AM
  6. Copy and Paste Visible Cells
    By Lost and Looking for Help in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2006, 10:20 AM
  7. [SOLVED] Copy & Paste visible cells only
    By Scott in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2005, 12:06 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