+ Reply to Thread
Results 1 to 6 of 6

Copy Row from one sheet to another

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Question Copy Row from one sheet to another

    Hi,

    I have 2 excel files. One act as an interface.xlsm n another as a database.xlsx

    In interface.xlsm will run the VBA process which its open database.xlsx and find row which have "lotNo" and copy that row to SSMC(sheet3) sheets in database.xlsx.

    The problem is the copy code below copy the row to sheet3 in interface.xlsm.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Copy Row from one sheet to another

    Can you also mention what the problem is?
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: Copy Row from one sheet to another

    Hi tanpa_nama

    Ideally a sample workbook would assist us in solving your problem...possibly even perfect your code
    Your code does not really specify any workbooks or sheets....This line of your code
    Please Login or Register  to view this content.
    should be something like
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Copy Row from one sheet to another

    I think the i in Cells(i, "D") has a value which which is invalid as a rownumber. Wanna bet?

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: Copy Row from one sheet to another

    which is invalid as a rownumber
    Now that you mention it Tsjalie...Probably right

  6. #6
    Registered User
    Join Date
    10-17-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Copy Row from one sheet to another

    thanks.the problem is due to the size of copy paste area.

+ 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. VBA code - copy info from sheet 1 to sheet 2 but NOT COPY BLANK CELLS
    By Yossarian1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2017, 06:09 PM
  2. Replies: 1
    Last Post: 02-09-2017, 05:36 AM
  3. Replies: 1
    Last Post: 02-09-2017, 05:30 AM
  4. how to copy specific data from a sheet to temp sheet and copy temp sheet toa new workbook?
    By NatashaKapoor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2014, 09:01 AM
  5. Replies: 1
    Last Post: 06-05-2013, 07:03 AM
  6. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  7. Replies: 11
    Last Post: 10-14-2012, 01:03 PM

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