+ Reply to Thread
Results 1 to 3 of 3

Question on ActiveCell.Value And Selection

  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question on ActiveCell.Value And Selection

    Hello all,
    I am familiar of the "Selection = (Variable) -or- (Variable) = Selection" syntax to refer to the contents of the current cell, and of the ActiveCell.Value property which I recently picked up.
    Is there any reason to use one over the other?
    Some bugs in my program were caused possibly because I used Selection instead of ActiveCell.Value (based on results, that seemed to be the probable cause) so I was wondering if one would rather use ActiveCell.Value rather then "Selection = (Variable) -or- (Variable) = Selection"
    Hope I am making myself clear.

    -JM967

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Question on ActiveCell.Value And Selection

    Activecell refers to single cell alone. But selection may be a single/multiple cell or even refers to objects Like (Shapes) too...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-23-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Question on ActiveCell.Value And Selection

    Alright, thank you.
    I always thought the "Selection" would work as well as ActiveCell. I guess i'll use ActiveCell just to be on the safe side from now on...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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