+ Reply to Thread
Results 1 to 3 of 3

vba code to determine last row containing data and copy the data to another sheet

  1. #1
    Forum Contributor
    Join Date
    05-14-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    120

    vba code to determine last row containing data and copy the data to another sheet

    Dear All

    It's great to be back to this wonderful forum after a long absence.

    Please, I should be grateful for your kind help with a vba code that will help me copy data from one excel worksheet to another.

    I have attached a sample file containing three worksheets, namely LISTING, REC and CUSTOMER.

    1. The code should be able to determine the last row containing data on the worksheet named 'Listing'.

    2. Then some of the data on that row should be copied to certain cells in the worksheet named 'Rec' - as follows:

    a) The data in col. A (Listing worksheet) copied to Cell C18 of Rec worksheet.
    b) The data in col. B (Listing worksheet) copied to Cell C13 of Rec worksheet.
    c) The data in col. C (Listing worksheet) copied to Cell C3 of Rec worksheet.
    d) The data in col. H (Listing worksheet) copied to Cell I15 of Rec worksheet.
    e) The data in col. F (Listing worksheet) copied to Cell I17 of Rec worksheet

    I also would like to have a 'PRINT' code to enable me to Print out the ‘Rec’ sheet (the Print Area is A1:I29).

    I wish to add that the data in column A of ‘Listing’ worksheet is ‘name of customer’ which is selected by using Data Validation drop down list. I am mentioning this in case it may be necessary to adjust the code that will copy that column’s data from the drop down list to another worksheet. As mentioned in (a) above, the data in this column is copied to Cell C18 of Rec worksheet.

    I have a bit of knowledge on how to create a data validation drop-down list. So creating the drop list would not be a problem for me.

    I’ll appreciate your help.

    Buddy8
    Attached Files Attached Files
    Last edited by Buddy8; 09-07-2014 at 10:13 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello Buddy8,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    05-14-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    120

    Re: vba code to determine last row containing data and copy the data to another sheet

    Please could someone kindly help me.

    Thanks.

+ 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. New Member... Trying to learn some advanced Excel
    By JCooper578 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 11-22-2013, 12:45 AM
  2. New Member - Looking for Specifics and to Learn
    By inlaymanterms in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-06-2013, 09:26 PM
  3. I am a ne member that need to learn VBA
    By Kent Spielmann in forum Hello..Introduce yourself
    Replies: 4
    Last Post: 08-14-2013, 07:23 PM
  4. New Member Trying To Learn More
    By Rooster1 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-18-2013, 02:42 PM
  5. new member, eager to learn
    By mussussu in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-21-2013, 07:29 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