+ Reply to Thread
Results 1 to 9 of 9

Copying from one sheet to another sheet...

  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

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    and paste it to the other workbook, sheet name "XAMPP"in the last row of Column A.

    Please Login or Register  to view this content.
    I'm getting an error "Application-defined or object-defined error" in the highlighted line above.


    "wb" is declared as global.

    Please Login or Register  to view this content.
    Last edited by puuts; 08-29-2013 at 03:27 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: What's wrong with this...

    Let's start with a better title, please.

    Then I suggest you use xlUp rather than xlDown when selecting the copy range or you'll copy the entire columns...
    Remember what the dormouse said
    Feed your head

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

    Re: Copying from one sheet to another sheet...

    Hi Rory,

    Sorry for that, I have change the thread title. I'm getting an error on the highlighted line, could you please advise why i'm getting that error?

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copying from one sheet to another sheet...

    @ romperstomper,

    Let's start with a better title, please.
    I secong that!

    Then I suggest you use xlUp rather than xlDown when selecting the copy range
    And this should solve the problem.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

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

    Re: Copying from one sheet to another sheet...

    Hi Winon, where it my code should i change?

    Could you please advise?

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copying from one sheet to another sheet...

    Hi puuts,

    It is just this one, you need to change to:

    Please Login or Register  to view this content.
    And that should do it. If not you would have to upload a sample workbook, complete with your code, for us to have a look at.

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

    Re: Copying from one sheet to another sheet...

    It works!, I should review back vba 101. Thanks a lot Winon and Rory!

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copying from one sheet to another sheet...

    Hi puuts,

    You are welcome.

    @ romperstomper,

    Hello Rory,

    Hope you don't mind me butting in here.

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Copying from one sheet to another sheet...

    Not at all - butt away.

+ Reply to Thread

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