+ Reply to Thread
Results 1 to 4 of 4

Some very basic questions that are driving me crazy. Pls help

  1. #1
    Registered User
    Join Date
    05-11-2005
    Posts
    12

    Some very basic questions that are driving me crazy. Pls help

    Here are some of my basic questions:
    First off, what is the difference between going range(x).select and range(x).activate, they both become the activecell.

    Second,
    activeCell.FormulaR1C1= 45 or something, why do we need this formula R1C1 and what does it really mean or do. Without it the program still works?

    Third question,
    range(activeCell, activeCell.end(x1down)).select
    what does x1 down mean, I am assuming that this code selects all code that is present in this block like what you do by pressing shift end and errors. Is that correct.

    last question, what does the := do?

    Thanks a ton
    Jamie
    Last edited by jamie392; 05-11-2005 at 06:48 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Jamie,

    Question #1:
    What is the difference between Range(X).Select and Range(X).Activate?

    Answer #1:
    When the Range is a single cell then you can use either Select or Activate. If the Range is 2 or more cells like Range("A1:A10") then use Select.

    Question #2:
    What does ActiveCell.FormulaR1C1= 45 mean?

    Answer #2:
    Excel has 2 referencing methods Relative (R1C1 style) and Absolute ($A$1 style). Relative is used to move a set number of rows or columns away from the active cell. Absolute style references the cell row(s) and column(s) given. FormulaR1C1 requires the Formula references be in R1C1 or Relative addressing syle, while Formula requires Absoulte addressing or $A$1 style references.

    Question #3:
    In the expression Range(ActiveCell, ActiveCell.End(x1Down)).Select, what does xlDown mean?

    Answer #3:
    xlDown (Short for Excel Down) is one of four directional constants used with the End Range property. The direction constants are: xlUp, xlDown, xlToLeft, xlToRight.
    This moves the cursor in the specified direction from the selected cell. This is the same as using pressing one of the Arrows keys + End key to move through the Range.

    Question #4:
    WTF is ":=" ?

    Answer #4:
    This is known as the named argument equivalence operator. Function and Sub procedures can pass variables (arguments) into their procedures. You can either place the values in order or use their value name. Using the value name allows you to enter the arguments in order you wish. This very useful when certain arguments have default values. You can assign values to only the arguments you need to change.

    Hope this clears a few things up for you.

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    02-12-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: Some very basic questions that are driving me crazy. Pls help

    was just going through some of the old questions. Thank you very much for such a crisp and clear explanation. Thanx for jamie also for asking such good questions

  4. #4
    Registered User
    Join Date
    07-14-2013
    Location
    N/A
    MS-Off Ver
    Excel 2021 - 64 bit on Win11
    Posts
    42

    Re: Some very basic questions that are driving me crazy. Pls help

    Thank you Leith Ross good to know!

+ 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