+ Reply to Thread
Results 1 to 4 of 4

Help with Macros

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Help with Macros

    Hey All,

    I'm quite new to writing macro's in excel and would like some help doing the following:

    I have one workbook with two sheets in it and on both sheets I have Company Name's in column A and Addresses in Column B. Sheet1 has both Company name and addresses and Sheet2 only has company names.

    Sheet1 is a pretty big list of companies so a simple copy and paste would take a very, very long time.

    I need a Macro that will search through the company names and compare the two lists. When it finds a company that is in both lists (column A of Sheet1 and Sheet2) I would like it to copy the data from the Address column (column B) on Sheet1 and paste it in the address column (column B) in sheet2 BUT only if the address column in sheet2 is empty.

    I'm not 100% sure this is even possible but thought I'd ask.

    Thanks,
    RECICT

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Help with Macros

    Please Login or Register  to view this content.
    Might be that I've overlooked some outcome. If any error appears or the desired result is not what you asked for, just let me know.
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with Macros

    Thanks for your quick response Bishomen.

    The Macro worked perfectly thanks for your help it is much appreciated.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,645

    Re: Help with Macros

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.


+ 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