+ Reply to Thread
Results 1 to 5 of 5

macro or vba code for copying and pasting data from one worksheet to another

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    abu dhabi
    MS-Off Ver
    Excel 2003
    Posts
    2

    macro or vba code for copying and pasting data from one worksheet to another

    hi there,

    need some help guys on getting a macro or vba code for copying data from one worksheet to another. on the attached file, i have mentioned on dark grey filled with bold text the constant parameters i need to copy or transfer every day on the dBase sheet next to it. can you please help me setting up a code that will work for this situation? i find it really hard to construct a vba code that will pull up the date, description, vessel type, etc. etc and paste it on the next sheet.i would like to have it on a single button that after clicking it auto populates the data i need on the other sheet on the corresponding headings. also, i want to protect the data into it to make sure that nobody can mess around with it . would appreciate any assistance. thank you very much for helping out.
    Attached Files Attached Files

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

    Re: macro or vba code for copying and pasting data from one worksheet to another

    Sure, this can be done.

    Do you also need the rows in green and orange/magenta to be copied as well? Like rows 19, 24, 35, 36?

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: macro or vba code for copying and pasting data from one worksheet to another

    It's not really clear what you want to copy
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    10-03-2011
    Location
    abu dhabi
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: macro or vba code for copying and pasting data from one worksheet to another

    hey guys,

    thanks for the reply.

    arlu1201 no, i don't need to copy the cell formatting. only the values is where i am interested at.

    royUK basically i want the code to look for the date field on the daily report sheet then copy the values on the columns of description, vessel type, tow, FOB, Bunkered, FW, POB, Current Location, Destination, Daily Breakdown Hours.

    please help.thanks....

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

    Re: macro or vba code for copying and pasting data from one worksheet to another

    What should the date field be compared to?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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