Results 1 to 2 of 2

Simple concatenation in macro not working...

Threaded View

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    SLC, UT
    MS-Off Ver
    Excel 2003
    Posts
    7

    Simple concatenation in macro not working...

    I am trying to put the following lines in a macro. If I replace the concatenation with a specific value (i.e. 9617) it works just fine. I don't understand why it is not working as listed. I get a Run-time error '1004': Method 'Range' of object_'Global' failed.

       Selection.Copy
        Range("A3:A" & Str(sLastRow)).Select
        ActiveSheet.Paste
    Any suggestions would be appreciated. I know I am missing something dumb.

    Thanks,
    Dave
    Last edited by jeffreybrown; 10-02-2012 at 06:20 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