+ Reply to Thread
Results 1 to 4 of 4

How do you change selected cells?

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    OKC
    MS-Off Ver
    2010
    Posts
    4

    How do you change selected cells?

    I have a sheet that I have ctrl - clicked (in Excel) to select 5 to 6 cells and I want to use .colorindex=3. how do I do it without having to create a named range (in VBA)?

  2. #2
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: How do you change selected cells?

    Hi cooldraft

    in vba just use..
    Selection.Interior.ColorIndex = 3


    zeddy

  3. #3
    Registered User
    Join Date
    02-26-2016
    Location
    OKC
    MS-Off Ver
    2010
    Posts
    4

    Re: How do you change selected cells?

    Thank you, you're awesome.

  4. #4
    Registered User
    Join Date
    02-26-2016
    Location
    OKC
    MS-Off Ver
    2010
    Posts
    4

    Re: How do you change selected cells?

    OK now how do I reference the unselected cells?

+ 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. Change cells in code to my selected cell
    By Njineer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2018, 01:15 PM
  2. [SOLVED] When a cell is selected, change value of 2 other cells
    By Wishdom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2017, 11:40 PM
  3. [SOLVED] Worksheet change on selected cells
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2014, 11:54 AM
  4. [SOLVED] Change cells format when a value is selected
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:15 AM
  5. [SOLVED] Change how selected cells are shown in columns
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2013, 07:48 AM
  6. Change Format of Cells, selected cells....
    By jamessaunders in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2007, 06:26 AM
  7. [SOLVED] How do I lock selected cells, so only I can change them?
    By Robert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2006, 12:45 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