Results 1 to 6 of 6

Row() function use in EXCEL VBA

Threaded View

  1. #1
    Registered User
    Join Date
    03-27-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    20

    Row() function use in EXCEL VBA

    I have User Defined Function - getRefi(Row()).
    I want to assign this function as value to some sepecific cells in worksheet.
    I wrote a function as given below, but excel is not recognises the Row() funciton, while it works fine in workbook.

    Public Function displayExpectedValues()
    startRowValue = InputBox("Enter FirstRow Number to read data")
    EndRowValue = InputBox("Enter Last Row Number to read Data")
    
    For Each c In Sheets("Reasult Reader").Range("Q" & startRowValue &":Q" & EndRowValue )
        c.Offset(0, 1) = getIZV(Application.WorksheetFunction.Row())  ' excel is not recognizing row() function
        c.Offset(0, 2) = getIZV(Row()) ' excel is not recognizing row() function
        startRowValue = startRowValue  + 1
        if startRowValue  = EndRowValue Then
              Exit for
        End If
    Next c
    End Function
    Last edited by syparth; 04-15-2013 at 11:44 AM.

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