+ Reply to Thread
Results 1 to 2 of 2

PasteSpecial in VBA

  1. #1
    Registered User
    Join Date
    09-13-2008
    Location
    Barrie, ON, CA
    Posts
    47

    PasteSpecial in VBA

    Attached is a template i am working on... there is a macro named macro4 which copies a specified range in the "Combos" sheet and pasteSpecials it in Sheet1. I used pasteSpecial for the skip blank feature so that it doesn't ovewrite other formulas. Can someone please open the file and run the macro while observing Sheet1 column "N". This column contains formulas and should not be effected by macro4 yet when macro4 is run cells in column N give a value of "" but the formula is still there ?? it's very strange i've never had a problem as such b4.. can anyone help..

    Thank You
    Attached Files Attached Files
    Last edited by RBI; 10-06-2008 at 09:49 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello RBI,

    Your code was attempting to reference a no existent object "Sheet". To return a Sheet object from the Sheets collection, you must use "Sheets" followed by the worksheet name. Here is the revised code..
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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: 1
    Last Post: 02-27-2008, 07:54 PM
  2. PasteSpecial Formulas Macro
    By petehar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2007, 04:39 PM
  3. Copy range with pastespecial function
    By MandC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2007, 07:19 AM
  4. PasteSpecial method of Range class failed
    By reborges in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2007, 02:27 PM
  5. Strange pastespecial texttocolumns behavior
    By RichT51 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-15-2006, 11:01 AM

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