+ Reply to Thread
Results 1 to 3 of 3

How to make a selection of cells "active cells"

  1. #1
    Registered User
    Join Date
    06-13-2014
    Posts
    11

    How to make a selection of cells "active cells"

    I need to make the selection of cells all active cells, rather than the first one I clicked on. Right now I have the code as

    Sub SELECTIONLOSE()
    '
    ' SELECTIONLOSE Macro
    '

    '
    ActiveCell.FormulaR1C1 = "=-R8C5"

    End Sub


    I can't seem to find a way to make a selection a set of active "cells" and even found trouble just trying to record the macro, as the selected cells only returned the first cell I clicked as an active cell. I want the selected cells all to return the same forumla, but I don't want a set fill range.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How to make a selection of cells "active cells"

    As I understand it you can only have one activecell but instead of activecell.formular1c1 you can use:
    Please Login or Register  to view this content.
    to apply it to all of them.

  3. #3
    Registered User
    Join Date
    06-13-2014
    Posts
    11

    Re: How to make a selection of cells "active cells"

    Hey thanks for the tip, it worked! I can't believe I overlooked that haha such a simple fix

+ 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 USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  2. [SOLVED] What's the difference between "selection" and "active"?
    By geophysicist in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-18-2013, 09:58 AM
  3. Excel VBA Code to make my Toggle Buttons output "Yes" or "No" to their cells
    By mebanet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 06:14 AM
  4. make "found" cells active
    By Debbie123 in forum Excel General
    Replies: 1
    Last Post: 07-25-2010, 05:03 PM
  5. [SOLVED] Why "center across selection" rather than "merge" cells? What is.
    By Michele in forum Excel General
    Replies: 4
    Last Post: 04-25-2005, 10:06 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