Results 1 to 2 of 2

Thread: copy special cells with values and formats

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    3
    Rep Power
    0

    Question copy special cells with values and formats

    Hi all,
    I have a pivot table with hidden columns.
    Without vba I use:
    Ctrl+G
    button Special
    Copy
    Paste in Range("AA1")
    and the result is perfect = I copy values and format succesfully

    Now I'm trying to copy only visible cells with VBA
    I use:

    Code:
    Sheets("North_East").UsedRange.Select
        Selection.SpecialCells(xlCellTypeVisible).Select
        Selection.Copy
        Range("AA1").Select
        Selection.Paste
    so I paste only values
    but my goal is cpoing values and formats

    Could you help me?

  2. #2
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    13
    why not:

    Code:
    Sheets("North_East").UsedRange.SpecialCells(12).Copy    Range("AA1")

Similar Threads

  1. Replies: 2
    Last Post: 02-23-2013, 09:18 PM
  2. Replies: 2
    Last Post: 02-11-2013, 08:13 PM
  3. don't copy filtered data if no active cells
    By xander1981 in forum Excel Help
    Replies: 29
    Last Post: 11-01-2012, 06:47 PM
  4. Unmerge Cells and Fill with Duplicate Values
    By princ_wns in forum Excel Help
    Replies: 3
    Last Post: 10-09-2012, 07:36 AM
  5. Date & Time Formats in Different Languages
    By Haseeb A in forum Excel and VBA Tips and Tricks
    Replies: 1
    Last Post: 06-10-2012, 02:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •