Closed Thread
Results 1 to 5 of 5

Excel VBA cells function.

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel VBA cells function.

    I need to write a function that writes a 10x10 table and in each cell writes its position. For example in cell A1 it would say "A1" and so on. It basically just needs to label the cells from A1 to J10. We are supposed to use the macro recorder i just dont know how you would label them all without individually labeling them. I am struggling with the characters as well. Thanks

  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,258

    Re: Excel VBA cells function.

    Hello mattm99,

    Welcome to the Forum!

    Here is a hint, set the cell's value to its address using the Address property.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Excel VBA cells function.

    No macro needed. Try this formula, copied to the desired range:

    =ADDRESS(ROW(),COLUMN(),4)

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

    Re: Excel VBA cells function.

    @ Whizbang

    Look again...
    We are supposed to use the macro recorder

  5. #5
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Excel VBA cells function.

    Ah... Homework assignment, eh? Now I regret my direct answer.

Closed 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