Posts by markc

    Re: update formula to last row


    Thanks TJ -


    I thought about dynamic ranges on the morning walk for coffee
    I guess I sometimes post before I completely think through
    what I am trying to do. :(


    I am having a problem setting up the DR formula to suit however


    [highlight]
    =OFFSET($L$136,0,0,COUNT($L136:$L),1)
    [/highlight]


    Returns "Formula contains an error" highlight on last $L
    The data under examination begins at row.136


    Thanks
    -marc

    Hi all
    Using xl 2003


    How do I would I re-write my formula to reference ever expanding data
    No blanks ever.


    Here's my current array [ctrl+shift+enter, of course]


    [highlight]
    =SUM(IF($L$136:$L$600=C$27,IF($A$136:$A$600=$A28,$J$136:$J$600,0),0))
    [/highlight]


    Everything is good except the refernce to row600
    At the moment need 633, but tomorrow will need more


    Thanks
    -marc

    Hi all
    Using xl 2003


    System
    Win xp pro
    HP Pavilion zx5000
    P4 (3.06GHz)
    1.0GB Ram


    This code is very slow to run



    Any ideas?
    Thanks
    -marc

    Re: Macro attached to main xl menu


    Thanks Viper / Stapuff -


    I want the macro always avail
    Even if no workbook is open (such as personal.xls)


    For some reason my personal.xls no longer opens when I start xl
    Not a problem as long as I can quickly call it up from the menu or standard toolbar.


    Thanks
    -marc

    Re: Copy a formula to a range (reworked)


    Thanks Roy -


    I really think for troubleshooting and future developments
    the past practice is to copy from a Formula sheet
    to the required range


    This way a user or I could edit the necessary formulas on a worksheet
    rather than digging thru code to edit the correct formula.


    My latest code is giving me
    Run-time error '1004':
    Select method of Range class failed


    Debug highlights here:

    Code
    Selection.Copy


    Don't know why


    Full revised code below
    Thanks
    -marc


    Hi all
    Using xl 2003.


    Am reworking my approach to copy a single formula to a range of unknown # of rows, 1 Col.


    Formula must update for current row (i.e. row 17 formula ref row 17, etc...)


    New code below gives "PasteSpecial method of Range class failed"
    I suspect because my copy is much earlier than the paste.


    Could someone please nudge me in the right direction?


    Thanks
    -marc


    Re: Variable range


    Thanks Will


    Is there a more esoteric way to do this?
    What if I or other user want to change the formula
    in the future?


    Wouldn't it be better to store the formula on another sheet
    and then copy the formula from Sheet("Formula") to Sheet("Analyze")


    Or could I alter this

    Code
    c.Offset(0, -1).Formula = _


    to

    Code
    c.Offset(0, -1).Formula = Formula!$A$1.Formula


    Thanks
    -marc

    Re: Variable range


    Thanks Roy
    Worked great - as I'm sure you knew


    My next problem is thr row reference in the formula does not update to the current row.


    How do I make the row reference the current row?


    Thanks
    -marc

    Hi all
    Using xl 2003


    Guess I do not know how to specify a variable range
    I want to start at P17 and continue until blank cell in Col P


    Can someone tell me th correct syntax please?


    Thanks
    -marc


    Hi
    Using xl 2003


    I would like to develop many options beginning at row 18
    Then row.19 would offer different options etc


    User should be ablt to enter row at B2
    The sample shows 5 col's of data, but in the end
    it will be 52 weeks


    I was thinking of concatenation or something
    but not sure because don't know how to update col reference


    Sample attached
    Thanks
    -marc