Results 1 to 9 of 9

Copying from one sheet to another sheet...

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Copying from one sheet to another sheet...

    I just want to copy the value of the below range

     With ActiveSheet
                    
            .Range("A1:Y" & .Cells(.Rows.Count, "F").End(xlDown).Row).Select
            Selection.Copy
            
          End With
    dim ads worksheet
    Set ads = wb.Worksheets("XAMPP")
    and paste it to the other workbook, sheet name "XAMPP"in the last row of Column A.

    
    ads.Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteAll
    I'm getting an error "Application-defined or object-defined error" in the highlighted line above.


    "wb" is declared as global.

    Public wb As Workbook
    Last edited by puuts; 08-29-2013 at 03:27 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Wrong coding or RANDBETWEEN is wrong?
    By zbor in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-31-2013, 10:01 AM
  2. What am I doing wrong?
    By Aurbo in forum Excel General
    Replies: 4
    Last Post: 11-15-2006, 07:05 PM
  3. What's gone wrong with this one?
    By BCB in forum Excel General
    Replies: 10
    Last Post: 10-04-2006, 10:55 PM
  4. What am I doing wrong?
    By PFB1033 in forum Excel General
    Replies: 1
    Last Post: 02-12-2006, 10:20 PM

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