Question as to why this will not run?
From: melody (melody_at_discussions.microsoft.com)
Date: 03/23/05
- Next message: Arvi Laanemets: "Re: Two-dimensional Named Ranges"
- Previous message: Moon: "Re: merge two worksheets with different columns and data"
- Next in thread: Bob Phillips: "Re: Question as to why this will not run?"
- Reply: Bob Phillips: "Re: Question as to why this will not run?"
- Reply: Duke Carey: "RE: Question as to why this will not run?"
- Reply: Tom Ogilvy: "Re: Question as to why this will not run?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Mar 2005 09:27:09 -0800
-- New to using VB to write macros….trying to get largest number in a column
and display that number within a message box….program will compile but I’m
getting a run time error.
Had programming experience in the past but it’s been quite some time!!!
Sub nextnum()
'
' nextnum Macro
' allows user to see next available number to assign to project
'
' Keyboard Shortcut: Ctrl+n
'
Range("C250").Select
ActiveCell.FormulaR1C1 = "=MAX(R[-106]C:R[-1]C)"
MsgBox "Next available Non Residential number is " & [ActiveCell.FormulaR1C1]
End Sub
mms
- Next message: Arvi Laanemets: "Re: Two-dimensional Named Ranges"
- Previous message: Moon: "Re: merge two worksheets with different columns and data"
- Next in thread: Bob Phillips: "Re: Question as to why this will not run?"
- Reply: Bob Phillips: "Re: Question as to why this will not run?"
- Reply: Duke Carey: "RE: Question as to why this will not run?"
- Reply: Tom Ogilvy: "Re: Question as to why this will not run?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|