+ Reply to Thread
Results 1 to 2 of 2

ı can't write the command

  1. #1
    Registered User
    Join Date
    04-12-2005
    Posts
    4

    ı can't write the command

    b = NPI + 1
    For i = 1 To b
    If i = 1 Then L(1) = Sqr((XPI(1) - XSP) ^ 2 + (YPI(1) - YSP) ^ 2)

    If i = b Then L(b) = Sqr((XPI(b) - XFP) ^ 2 + (YPI(b) - YFP) ^ 2) + L(b - 1)

    L(i) = Sqr((XPI(i) - XPI(i - 1)) ^ 2 + (YPI(i) - YPI(i - 1)) ^ 2) + L(i - 1)
    Next i


    ı want to write the valu of L(i) to the specified point (i.e Sheets("st - km").Cells((i + 2), 7) ) how can ı do this ?

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

    You answered your own question...

    Sheets("st - km").Cells((i + 2), 7).Value = L(i)
    Next i


    Sincerely,
    Leith Ross

+ 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