+ Reply to Thread
Results 1 to 4 of 4

Copy records with the same value in a column to a new sheet or workbook

Hybrid View

reeyasen Copy records with the same... 01-29-2008, 07:06 PM
VBA Noob Please read forum rules... 01-30-2008, 04:11 AM
royUK You don't seem to have a year... 01-30-2008, 04:17 AM
reeyasen thank you 01-30-2008, 11:29 PM
  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    2

    Copy records with the same value in a column to a new sheet or workbook

    Hi All,

    I have a requirement to create some Excel macros. To be honest, I am not a programmer but I have done some programming in C# 4 years ago for about a year. So i am hoping that if someone can give me the code of the sample I provide, I should be able to build on it.

    The scenario is like this:

    Master file has the following info:

    Item Code    Jan 07     FEB 07
    AB123         $20.00     $2018.00
    AB123         $30.00     $209.00     
    CD456         $40.00     $780.00
    CD456         $50.00     $2000.00
    I need to do the following:
    1. Create a button in the master file which when clicked creates a new excel file with the name "TestData" and creates a new worksheet for each Item Code.
    2. In each sheet, it will create a table with the Sale column for each year.
    3. In the "TestData" file, another button is required so that if the user modifies some data, e.g., Price, then this updated information can be updated back into the Master file.

    I have used a very basic version of my requirement. I will greatly appreciate your assistance in this regards.

    Regards,
    Reeya
    Last edited by Leith Ross; 01-29-2008 at 08:53 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read forum rules below. I've amended your title for you.

    This link may get you started

    http://www.rondebruin.nl/copy5.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You don't seem to have a year column, just months.
    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
    01-29-2008
    Posts
    2

    thank you

    VBA Noob and royUK

    Thanks for the tips. I shall check those url's out. VBANoob i shall remember the rules in future.

    Cheers.

+ 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