Anyone can help the reason my function does not work?
Thanks.
![]()
Function S(a, b) Dim a As Integer, b As Integer a = cell.Select(a1) b = cell.Select(a2) S = a + b End Function
Anyone can help the reason my function does not work?
Thanks.
![]()
Function S(a, b) Dim a As Integer, b As Integer a = cell.Select(a1) b = cell.Select(a2) S = a + b End Function
Last edited by VBA Noob; 06-07-2007 at 09:06 AM.
tt388,
Try this and see if it works.
![]()
Function S(a, b) Dim a As Integer, b As Integer a = activesheet.cells(1, 1).value b = activesheet.cell(1, 2).value S = a + b End Function
Sincerely,
Jeff
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks