+ Reply to Thread
Results 1 to 3 of 3

how would interpret this macro

Hybrid View

  1. #1
    Registered User
    Join Date
    12-28-2009
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2003
    Posts
    31

    how would interpret this macro

    I guess Sheets("A") is selecting sheet A ,but what does it mean if I combine it with .Cells(i, 3).Value É



    B = Sheets("A").Cells(i, 3).Value

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: how would interpret this macro É

    Hi,

    there's probably a variable called "i" that has a number value, so the code

    B = Sheets("A").Cells(i, 3).Value

    means: assign the variable "B" the value of the cell in row "i",column 3 (which is C1 if i=1) on the sheet with the name "A"

    hth

  3. #3
    Registered User
    Join Date
    12-28-2009
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: how would interpret this macro

    ok I got it !

+ 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