Results 1 to 5 of 5

whats wrong with my code

Threaded View

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    51

    whats wrong with my code

    i HAVE THIS CODE BELOW

    Sub datam()
    Sheets("Sheet1").Range("A1:D25").Copy
        Sheets("Sheet2").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial _
            Paste:=xlPasteValues
        Application.CutCopyMode = False
    
    
    
    End Sub
    However I don't want it to copy instead I want it to cut however when I do this it goes wrong

    Sheets("Sheet1").Range("A1:D25").Cut
        Sheets("Sheet2").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial _
            Paste:=xlPasteValues
        Application.CutCopyMode = False
    Last edited by Cutter; 07-11-2012 at 06:01 PM. Reason: Added code tags

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.6.0 RC 1