Results 1 to 6 of 6

Problem with subcopy range

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Problem with subcopy range

    Hello. Macro beginning here. I copied the following code and ran it.
    Sub CopyRange()
        Range("A1:A12").Select
        Selection Copy
        Range("C1").Select
        ActiveSheet.Paste
        
    End Sub
    However, when I ran it, it said Compile Error: Expected Function or variable. How do I correct this?
    Last edited by Leith Ross; 05-20-2013 at 07:25 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