+ Reply to Thread
Results 1 to 3 of 3

VBA code for selecting specific cells within a worksheet

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    1

    VBA code for selecting specific cells within a worksheet

    Hello All,

    I am a beginner in VBA and need some help from experts. It would be great if you could please let me know the VBA script to select only specific cells within a worksheet. To be more precise, on sheet 1 - A2, A6 and A10 cells are filled with red color. I want only those cells which are highlighted in red to be selected, copied and pasted to sheet2.

    Regards
    Santhosh

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: VBA code for selecting specific cells within a worksheet

    To select a specific cell, say A2, there are a few different ways to achieve this:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    To select cells based on their colour, try the code in my attachment.

    Hope this helps
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA code for selecting specific cells within a worksheet

    Another:

    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] code or macro to be triggered when selecting specific data
    By chiidzzz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2012, 10:45 AM
  2. [SOLVED] Selecting specific data on a worksheet and moving it to a table on another worksheet
    By wesman200098 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-08-2012, 05:45 AM
  3. Selecting specific cells
    By arambo in forum Excel General
    Replies: 5
    Last Post: 07-07-2010, 01:03 PM
  4. Selecting cells with specific conditions
    By Azheid in forum Excel General
    Replies: 5
    Last Post: 07-10-2008, 10:07 AM
  5. Selecting Specific Cells
    By maimal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2008, 01:53 PM

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