+ Reply to Thread
Results 1 to 9 of 9

Picking up the names that is not required using macros or formulas

  1. #1
    Registered User
    Join Date
    08-02-2008
    Location
    India
    Posts
    88

    Thumbs up Picking up the names that is not required using macros or formulas

    Hello

    I am herewith 2 questions..

    Number 1: I have a list of approved names which i may see everyday or sometimes I will not see any of these in my spreadsheet. But If someday any new name comes could this be identified by macros?

    Approved names are (for example I am giving the cartoon names)
    Tom
    Jerry
    Mickey
    Bravo
    Donald
    Spider

    So If I see other than these names i want the entire column to be picked up in the workbook named Unapproved - Sheet 1. And these names will always appear in Column I.

    My second question is very very simple.. I couldn't do it..

    I have kept two workbooks open assuming book 1 and book 2. Can i have a macro where if i keep my cursor in the Book 2 i should get the name of the book 1 in the column D.

    Please note Book 1 can be named everytime differently.

    Thanks a mill for your help.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Picking up the names that is not required using macros or formulas

    Hello share knowledge,

    It would help to know the names of the workbooks. Is workbook 2 named "Unapproved"? What is a typical name for workbook 1?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Picking up the names that is not required using macros or formulas

    Since you did not provide specific descriptions of your workbook, here is a general possibility for question #1:
    Sheet1, column A is Titled Approved Names, with a list of names down the column. Then define a named range "Approved_Names" and in the refers to box enter:
    Please Login or Register  to view this content.
    To use it in a macro (maybe some loop):
    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    08-02-2008
    Location
    India
    Posts
    88

    Re: Picking up the names that is not required using macros or formulas

    Thanks Both of you!

    The workbook1 name is different everytime. Otherwise I can say I have two workbooks kept open. You can see these names in one workbook and the other workbook does not have anything (Workbook 2 has an empty sheet named unapproved). So the code should find these names and if anything is not in the list it should copy that entire column and pick it up in the unapproved sheet in workbook 2.

    Everytime the name of the workbook is different. It will be great if you can provide me the code that is not workbook specific.

    If you have a code only with workbook specific. no problem please provide it.. I ll edit when i run a macro. (In tat case keep the names of the workbooks as Book1 and Book2
    Book 1 is the place where you will see the names and Book 2 is the place where the unapproved names has to get picked up).

    Thanks a mill.

  5. #5
    Registered User
    Join Date
    08-02-2008
    Location
    India
    Posts
    88

    Re: Picking up the names that is not required using macros or formulas

    Hello Experts - Any solutions on my first and second question.

  6. #6
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Picking up the names that is not required using macros or formulas

    HI
    pl attach a sample workbook and expected output.
    Ravi

  7. #7
    Registered User
    Join Date
    08-02-2008
    Location
    India
    Posts
    88

    Re: Picking up the names that is not required using macros or formulas

    Will this help?

    I think this can be done using any inbuilt formulas.

    Also i tried doing the below, but getting the error "Name"
    =OFFSET(Sheet1!$A$1,1,0,MATCH("*",Sheet1$A:$A,-1)-1,1)

  8. #8
    Registered User
    Join Date
    08-02-2008
    Location
    India
    Posts
    88

    Re: Picking up the names that is not required using macros or formulas

    I am sorry i missed to attach the sample
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Picking up the names that is not required using macros or formulas

    Hi
    try the formula in col G I have provided in the attached file
    Ravi
    Attached Files Attached Files

+ 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