Posts by rabsofty

    Re: VBA Set Focus error with Data Validation



    in your code above you have
    TB_DateWeekCommence.Value.SetFocus


    should be
    TB_DateWeekCommence.SetFocus

    Re: Enabling and Disabling Command Buttons in Excel Userforms


    here is a sample I have with button OkBT



    rabsofty

    Re: Enabling and Disabling Command Buttons in Excel Userforms


    for enabling/disabling buttons:
    EnterCmd.enabled=true or false


    any control in a userform can be enabled/disabled this way


    for a list of all commands available to lets say your button (EnterCmd)
    type: EnterCmd.


    this will give you a list of all available commands for this control

    Re: Financial Workbook (Beta Testers) & (VBA Code Lovers)


    pike I have attached a file (Budget2015.txt)


    put it in c:\Rabsoftware\Financial_Statement\budget\


    rename it to Budget2015.dta (forum does not allow ext .dta)


    then simply load that budget year.


    For the other sheets,
    Creditcard Sheet: Create yourself a credit card.


    Vehicle Sheet: gets its data from Budget data (load sheet for 2015)


    Annual Sheet: load annual data for 2015 - then configure some entries.
    (Don't forget to click SAVE CHANGES when done)


    Banking Sheet: Add your own banking data. (see examples on sheet)
    Reports sheet: Create a system stats report for 2015
    Reports sheet: Create a Totals report for 2015


    Note: you are licensed from 2015 - 2019 (click Info? on Globals Sheet)


    Rabsofty

    Re: Financial Workbook (Beta Testers) & (VBA Code Lovers)


    Due to unforeseen technical problems I closed the post.


    the post is reopened and I have a NEW link to DropBox.


    Here is NEW dropbox link to the Financial Statement Workbook.


    https://www.dropbox.com/s/b89gm992p619z19/Beta.zip?dl=0



    Here are the instructions for installing the Financial_Statement.xlsm workbook.


    Do the following:
    -----------------


    *** On your P.C. ***


    Create the following Folders:
    c:\Rabsoftware\
    c:\Rabsoftware\Financial_Statement\


    download the beta.zip file (link above)


    right mouse on the beta.zip folder and click Extract All
    (make sure the folder it will extract to is: c:\Rabsoftware\Financial_Statement\


    After extraction, you will have the following:


    in c:\Rabsoftware\Financial_Statement\
    Bin - Folder
    Financial_Statement.xlsm - Excel Workbook.
    finstmt.hlp - compiled help file
    finstmt.cnt - compiled contents file


    in c:\Rabsoftware\Financial_Statement\bin\
    about.dtv - about program
    buglst.dtv - bug list
    verinf.dtv - version info


    Note: Note: Note: Note: Note: Note:
    -----------------------------------
    Normally i have an Installer program to do all this for you.
    My current Installer program is not compatable with windows7 and up.
    I will be upgrading the installer program soon.


    Operation:
    ----------
    When you run the workbook,


    select my first time using this workbook and click continue.


    Enter the following license: NJUFTJHJWGGLUSPRSETJ


    After that follow the instructions in the workbook.


    ************************************************************
    If You Have Any Questions,
    send me a private message in the forum and i will respond.
    ************************************************************


    Enjoy and Thanks In Advance: Rabsofty


    VBA DEVELOPERS:
    ---------------
    If anyone wants to look at the vba code,
    the password is: betauser


    The worksheets and workbook are also password protected with the same password.
    DO NOT change the worksheet and workbook password without also changing it
    in the vba code.


    Help File Note:
    ---------------
    The help is in the old windows format (XP), if windows asks
    you to get an addon (win32hlp.exe) do so and install it.
    I am currently rewriting the help utility in the
    new windows format and will be out soon.


    Thanks Again


    Rabsofty [INDENT]

    [/INDENT]

    Re: Financial Workbook (Beta Testers) & (VBA Code Lovers)


    Here is dropbox link to the Financial Statement Workbook.


    https://www.dropbox.com/s/8e04d803609piw3/beta.zip?dl=0



    Here are the instructions for installing the Financial_Statement.xlsm workbook.


    Do the following:
    -----------------


    *** On your P.C. ***


    Create the following Folders:
    c:\Rabsoftware\
    c:\Rabsoftware\Financial_Statement\


    download the beta.zip file (link above)


    right mouse on the beta.zip folder and click Extract All
    (make sure the folder it will extract to is: c:\Rabsoftware\Financial_Statement\


    After extraction, you will have the following:


    in c:\Rabsoftware\Financial_Statement\
    Bin - Folder
    Financial_Statement.xlsm - Excel Workbook.
    finstmt.hlp - compiled help file
    finstmt.cnt - compiled contents file


    in c:\Rabsoftware\Financial_Statement\bin\
    about.dtv - about program
    buglst.dtv - bug list
    verinf.dtv - version info


    Note: Note: Note: Note: Note: Note:
    -----------------------------------
    Normally i have an Installer program to do all this for you.
    My current Installer program is not compatable with windows7 and up.
    I will be upgrading the installer program soon.


    Operation:
    ----------
    When you run the workbook,


    select my first time using this workbook and click continue.


    Enter the following license: NJUFTJHJWGGLUSPRSETJ


    After that follow the instructions in the workbook.


    ************************************************************
    If You Have Any Questions,
    send me a private message in the forum and i will respond.
    ************************************************************


    Enjoy and Thanks In Advance: Rabsofty


    VBA DEVELOPERS:
    ---------------
    If anyone wants to look at the vba code,
    the password is: betauser


    The worksheets and workbook are also password protected with the same password.
    DO NOT change the worksheet and workbook password without also changing it
    in the vba code.


    Help File Note:
    ---------------
    The help is in the old windows format (XP), if windows asks
    you to get an addon (win32hlp.exe) do so and install it.
    I am currently rewriting the help utility in the
    new windows format and will be out soon.


    Thanks Again


    Rabsofty

    I have a Financial workbook that I built for which I am
    looking for a few beta testers to critique, expose my bugs, offer comments.


    You Can Also Look At My VBA Code (Maybe To Give You Some Ideas)


    Thanks: Rabsofty


    *** If you are interested, ***


    Since the forum does not allow me to upload some of the files listed below,
    send me a private message if you are interested Or reply to this post.
    I will them email them to you.


    Thanks Rabsofty


    Financial_Statement.xlsm - Excel Workbook.
    finstmt.hlp - compiled help file
    finstmt.cnt - compiled contents file
    about.dtv - about program
    buglst.dtv - bug list
    verinf.dtv - version info

    Re: building an object in vba in a userform


    thanks cytop. after 27 years I was bound to forget something.


    when setting nobj, I forgot to assign as a control


    Thanks again
    Rick


    my solution:

    Code
    Dim nobj As Object
    
    
      For j = 1 To parmval("numopts")
        Set nobj = Me.Controls("pmCM" & j)
        a2 = Parms.Cells(b, j + 2):nobj=a2
      next j

    I did this a very long time ago and cannot remember how


    I have 3 checkboxes in a user form (labelled - pmCM1,pmCM2,pmCM3)


    normally u can access them directly (eg: pmCM2.caption)


    I want to chain the name together as an object.
    as follows


    code start
    j=2
    nobj= "pmCM" & j


    nobj now = pmCM2 (but not as an object)


    what am I missing???