Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question as to why this will not run?
-- 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 Im getting a run time error. Had programming experience in the past but its 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 Macro/VB Question DDE Question | Excel Worksheet Functions | |||
where can I see my question and answer? Yesterday I ask a question | Excel Discussion (Misc queries) | |||
Add-In question | Setting up and Configuration of Excel | |||
Newbie Question - Subtraction Formula Question | Excel Discussion (Misc queries) | |||
The question is an excel question that I need to figure out howto do in excel. | Excel Worksheet Functions |