+ Reply to Thread
Results 1 to 2 of 2

Macro code to identify a substring from a Word

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    TamilNadu
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cool Macro code to identify a substring from a Word

    Hi All,
    I need help in a VBA code as I'm new to VBA macros in excel.

    I have multiple rows (database objects) in 1st column

    Ex. Input Sheet

    Database Object Name:
    EmployeeTable
    EmployeeName
    EmployeeAge
    DepartmentView
    DepartmentName
    DepartmentEmployeeCount
    DepartmentOwner


    Requirement:
    1. New worksheet to be created to have the output. The output sheet will have 2 columns as TableViewName, ColumnName.
    2. If substring like 'Table' or 'View' are found in those rows, then outputsheet's TableViewName column to be populated with the cell value from Input worksheet.
    3. If substring like 'Table' or 'View' are found in those rows then the outputsheet's ColumnName column to be populated with the cell value from Input worksheet.

    Output Sheet


    TableViewName ColumnName
    EmployeeTable EmployeeName
    EmployeeTable EmployeeAge
    DepartmentView DepartmentName
    DepartmentView DepartmentEmployeeCount
    DepartmentView DepartmentOwner



    Thank you in advance for helping me

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,652

    Re: Macro code to identify a substring from a Word

    Assuming the data in column A in Input Sheet
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] macro code to identify cell value and delete rows
    By leebird in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-09-2016, 07:31 PM
  2. Macro to search cells for substring and replace contents of cell if substring is found
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2015, 06:40 AM
  3. Code to identify date in word file
    By kirtesh250187 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2013, 12:33 AM
  4. [SOLVED] extract from string whole word(s) containing substring
    By Bearpecs in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2012, 10:37 AM
  5. Need help for a code in macro (to identify alpha numeric numbers)
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2012, 11:59 PM
  6. [SOLVED] Extract Substring, then Ignore that Substring, while collecting data from Other substrings
    By Sameki121 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2012, 05:21 PM
  7. [SOLVED] identify a word in a string then change the format of that word
    By EazyExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2005, 03:06 PM

Tags for this Thread

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