+ Reply to Thread
Results 1 to 4 of 4

paste to visible cells only

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    65

    paste to visible cells only

    I filtered data

    now I need to copy formula and paste values to same visible cells

    is there is any possible way to paste values to visible cells only

    By Code or Any other way ?

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: paste to visible cells only

    Assuming your filtered formulas are in column A:

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    65

    Re: paste to visible cells only

    worked if possible pls explain

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: paste to visible cells only

    SpecialCells(12) are cells that are visible.
    SpecialCells(-4123) are cells that have formulas.

    If a cell has a formula in it, it will have these two properties (the numbers are just an example):

    Range("A1").Formula = "=SUM(1,2)"
    Range("A1").Value = 3

    That range only has a .Value because it has a .Formula "controlling" the value. Setting .Value = .Value is essentially saying that the value is now "in control", and cells with a hardcoded value in them can't have a formula, so it goes away.

    If you are satisfied with the solution, please mark this thread SOLVED, and any reputation points (the * in the lower left of the posts) are appreciated.
    Last edited by walruseggman; 01-19-2016 at 09:34 AM.

+ 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: 3
    Last Post: 04-09-2015, 07:42 PM
  2. Paste to Visible Cells Only
    By LHDinh in forum Excel General
    Replies: 1
    Last Post: 06-04-2014, 06:32 AM
  3. [SOLVED] Copy Filter Data and paste it on another workbook with special cells(Only Visible Cells)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2014, 07:59 AM
  4. [SOLVED] Paste to visible cells only
    By sabrina789 in forum Excel General
    Replies: 7
    Last Post: 03-17-2014, 07:34 AM
  5. Paste into only visible cells
    By Jonathan9 in forum Excel General
    Replies: 1
    Last Post: 03-06-2014, 03:41 AM
  6. 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
  7. [SOLVED] Paste into Visible Cells Only
    By CR in forum Excel General
    Replies: 1
    Last Post: 06-10-2005, 03:05 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