+ Reply to Thread
Results 1 to 2 of 2

Macro help please!

  1. #1
    Registered User
    Join Date
    02-06-2007
    Posts
    6

    Macro help please!

    I have one workbook ("WB1") with two worksheets (Sheet1 & Sheet2). Each worksheet has most of the same information, and I want to create a macro that will cobine each worksheet. Also some information is different on both sheets. Here is what I want to do....I just don't know how to write the macro code.
    **************
    Start on "Sheet1"
    Look at cell B1 (phone number) if B1 matches a phone number in "Sheet2" column A, cut the whole line from "Sheet2" and paste the line in "Sheet1" starting in F1.

    Then move to line2 and go all the way through to end of file.
    ***********

    Does that make sense? ThankS

    Please help me out. Thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363

    Wink

    Hi thepartydj

    It always a good practice to provide a sample of your work which outline what you currently have and what you want the final product to look

    Thanks
    Denis
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

+ 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