Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to run some VBA code that I would use Range names rather than a
specific range, ie Data!M3:M223. MsgBox Evaluate("SUM( Data!M3:M223 )") will work, but when I change it to include the Range name representing Data!M3:M223, it does not. Can anyone help to figure out what I'm doing wrong. Thanks in advance. Dim mTimeCriteria As String Dim mPosition As String Dim mFormula As String Dim mQuestion1Range As Range mTimeCriteria = "First day of employment (Time 1)" mPosition = "Registered Nurse" mPositionRange = Worksheets("Data").Range("DataPosition") Set mTimeRange = Worksheets("Data").Range("DataTime") Set mQuestion1Range = Worksheets("Data").Range("DataQuestion1") MsgBox Evaluate("SUM( mQuestion1Range )") |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Last cell in Range when range is date format | Excel Discussion (Misc queries) | |||
Cond. Format Data Bars of range based on values of another range | Excel Worksheet Functions | |||
Range to echo format (hilite/fontcolors) of sister range? | Excel Worksheet Functions | |||
how do i format a cell based on format of a range of cells? | Excel Discussion (Misc queries) | |||
Format when sending a range as parameter to a custom function | Excel Programming |