+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    03-10-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Paste special using an array

    Hi all,

    Having troubles with this one. I'm populating an array from one sheet and closing it. Then opening a new sheet and pasting the array into a range.

    That all works which is grand. However, I want to use the paste special / Add / Skip Blanks. I want to sum the cells if there is a value already. I don't really want to have to iterate each array element and sum them that way. Here's what I've got:

    cellRange = Range("C6:AF48").Value
    ActiveWorkbook.Close
    Range("C6:AF48").Value = cellRange ' this is where I want to use paste special.
    Any ideas as to how I can achieve ths?

    All the best,
    John
    Last edited by JohnSidney; 03-12-2010 at 10:56 AM.

  2. #2
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: Paste special using an array

    Please edit your post to comply with the Forum Rules.

    Rule #3
    Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button. For more information about these and other tags, click here.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

Thread Information

Users Browsing this Thread

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

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.2.0