Results 1 to 5 of 5

Assigning Current Region to a variable

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Assigning Current Region to a variable

    Hi,

    I’m attempting designate the cell which will then determine the start of the current region,
    to be copied and pasted to another sheet.

    I’m receiving an “ERROR 1004” , Method Range of object_ Worksheet Failed.

    Does anyone have any ideas as to what I’m doing incorrectly and how to fix it?

                   
     Set CopyRng = sh.Range(sh.Rows(StartRow), 3).Activate
                           CopyRng.CurrentRegion.Select
    The workbook is attached for your inspection.
    The code is located in module 4

    Thanks
    Mark
    Attached Files Attached Files
    Last edited by max57; 12-07-2009 at 08:21 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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