+ Reply to Thread
Results 1 to 5 of 5

Active Row

  1. #1
    Forum Contributor
    Join Date
    07-27-2012
    Location
    Somerset, Kentucky
    MS-Off Ver
    Excel 2007
    Posts
    123

    Active Row

    I would like to create an if statement based on an active row.

    For example, something like this

    If ActiveCell.Row = Range (C:C) Then



    In other words, I only want the code to fire if the active cell is in column C

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Active Row

    C is a column

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-27-2012
    Location
    Somerset, Kentucky
    MS-Off Ver
    Excel 2007
    Posts
    123

    Re: Active Row

    Right you are. Thank you.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Active Row

    You're welcome.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Active Row

    Hi scrabtree,

    If you are using your code in an Event Macro and only want the macro to execute if the target cell is in Column C then this might be your code:

    Please Login or Register  to view this content.
    Read:
    http://2toria.com/2010/07/10/using-i...t-in-vba-code/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Replies: 1
    Last Post: 07-07-2014, 09:19 AM
  2. [SOLVED] Determining which Active x button was pressed?? I have two Active X buttons that operate
    By Spreadlover in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2013, 09:40 AM
  3. Problems with autofilling formula down the active column to the end row using active cell
    By sl_riches2179 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2013, 09:30 AM
  4. Macro to Print active sheet as PDF to Active workbook and customize name
    By Scott Taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 08:52 PM
  5. Replies: 1
    Last Post: 12-03-2012, 08:55 AM

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