+ Reply to Thread
Results 1 to 2 of 2

Ranges of cells in VBA

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    Madrid, Spain
    Posts
    46

    Question Ranges of cells in VBA

    I am trying to understand how to make reference to different cells from VBA. Here is some example code of a range of cells.
    Please Login or Register  to view this content.
    Does this refer to Column A and Row 1 ?

    Thank you

    (note: i didnt put the code in the code brackets because its just one line)
    Last edited by royUK; 11-25-2008 at 05:17 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You should always use Code Tags.

    The range in the code is A1, because you haven't specified a sheet it will be on the activesheet. Although the use of .Cells should indicate you are3 using a With statement
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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