Results 1 to 9 of 9

Thread: Code help

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    4

    Question Code help

    I am trying to write some code in excel using vb. I am trying to use a calculation of field E1 and enter it into feild F1 but I cant seem to get it. Here is what I am trying:
    VB Code:
    1. Sub date_timetest()
    2. Dim rCell As Range
    3.     For Each rCell In Range( _
    4.         Range(E:E), _
    5.         Cells(Rows.Count, "E").End(xlUp))
    6.         If rCell.Value <> "" Then
    7.         rCell.FormulaR1C1 = "=(RC[-1] -INT(RC[-1]))*24"
    8.         End If
    9.     Next rCell
    10.  
    11. End Sub

    Does this make any sense. I am new to coding so I am a little lost. Any help would be greatly appreciated, Thanks Neal.
    Last edited by RobDog888; May 18th, 2006 at 04:35 PM. Reason: Added [vbcode] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width