+ Reply to Thread
Results 1 to 4 of 4

excel using VBA how to select specefic cells based on their values and copy these cells in

  1. #1
    Registered User
    Join Date
    12-14-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    2

    excel using VBA how to select specefic cells based on their values and copy these cells in

    hello i have this code that it select and copy all cells to the second sheet based on the value "name" and it work perfect

    what i need also is to add another value "contact" and also be able to select and copy all the cells based on the "contact" value

    can anyone help me with this ?

    Scan:
    =======

    Please Login or Register  to view this content.
    Last edited by devleb; 12-14-2015 at 04:16 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: excel using VBA how to select specefic cells based on their values and copy these cell

    Not 100% sure what you want help with but you could use Application.CountIf to count the no of occurrences in a range.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Moscow
    MS-Off Ver
    Office 365
    Posts
    100

    Re: excel using VBA how to select specefic cells based on their values and copy these cell

    Try this
    Please Login or Register  to view this content.
    I'm sorry my english...

  4. #4
    Registered User
    Join Date
    12-14-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    2

    Re: excel using VBA how to select specefic cells based on their values and copy these cell

    i will edit my thread and add the code that i have and this code will select the values in the right of the cells that contain "name" and it work fine
    what i need also is to add another value that contain "contact" and also select the values in the right of it

    than copy both of them to the second sheet

    take a look for the edit thread!!!!

+ 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] How to select all cells to the last cell in a specific column and copy values
    By pasqualebaldi in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-15-2014, 11:44 AM
  2. copy select cells to another tab based on data input into master tab
    By cangert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-21-2013, 03:12 PM
  3. Macro which finds and copy's cells based on values in other cells.
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2012, 05:11 AM
  4. Formula to copy and paste data in cells to other cells based on values
    By haleakala17 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-11-2012, 08:45 AM
  5. Select and copy cells based on adjacent cell
    By Zaeguzah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2010, 02:42 AM
  6. Select and copy cells based on values in another cells
    By JoC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2008, 04:39 AM
  7. [SOLVED] how do i link specefic cells?
    By Randy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-28-2005, 12:45 AM

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