+ Reply to Thread
Results 1 to 6 of 6

Row() function use in EXCEL VBA

Hybrid View

  1. #1
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Row() function use in EXCEL VBA

    c.row will give you the number you want
    Josie

    if at first you don't succeed try doing it the way your wife told you to

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

    Re: Row() function use in EXCEL VBA

    I have made a bit little changes to the function and have used "c.row" but it is thowing some different error now.

    Public Function displayExpectedValues()
    startRowValue = InputBox("Enter FirstRow Number to read data")
    EndRowValue = InputBox("Enter Last Row Number to read Data")
    
    c = Sheets("Result Reader").Range("Q" & CStr(startRowValue))
    
    Do While startRowValue < EndRowValue
        c.Offset(0, 1) = getIZV(c.Row) ' Object Required error
        c.Offset(0, 3) = getIZV(c.Row)
        c.Offset(0, 2) = c.Offset(0, 1).Value + c.Offset(0, 3).Value
        startRowValue = startRowValue + 1
    Loop
    End Function

+ 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