Posts by Bill Rockenbach

    Re: copy data to new sheet based on condition


    This procedure will run each time a catalog Multiple is changed. It clears the invoice items and rebuilds them with each change.


    Put it in the Catalog module. To clear the invoice simply clear the Catalog multiple column. To remove an item change the Catalog multiple to zero or null.


    Re: Copying non continuous cell to one single row in another sheet


    No need to activate the master sheet if you do not need to copy the formats


    Insert this code in your loop through the files


    Re: Hidden VBA code


    Thank you all for your comments.


    Duh! How did I miss that?


    Other products of Simple Planning use Amortization Schedules. This schedules use many “If” formulas to display the schedule when a parameter of the loan changes. Again no vba code. They also use index formulas to change the data presented in some of their Dashboard charts.

    I ran across an Excel .xls application wherein the worksheets have forms control command buttons and list boxes with functioning code and cells with active events.


    But none of the code appears in the VBA project. The only thing that shows in the VBA Project is a list of the worksheet names in the Project Explorer. There are no standard modules, class modules nor userforms. All code is hidden, yet the VBA project is not locked or protected. There are no associated com .dll’s and when the file is opened the security warning about macros does not display.


    Anyone know how the code is being hidden?


    The sample demo file can be downloaded from Simple Planning.


    (I am not associated with this website, nor have any opinion about their software.)

    Re: VBA Form, find last row and fill


    Please use code tags on all vba code. I added code tags to your post


    Try this solution . . .


    Re: Before Close Event to save changes to Another Workbook


    One more time. . .

    Re: Before Close Event to save changes to Another Workbook


    Try this. . .


    Re: Frame a subset of a group of option buttons


    You could control the option buttons with the following code


    Code

    Re: Before Close Event to save changes to Another Workbook


    Try

    Re: Trying to copy and past multiple workbook to three single sheet


    I had assumed your file open procedure was working OK. Its not.


    Try this version


    Re: Trying to copy and past multiple workbook to three single sheet


    Hard to test without your files, but I think this will work



    Re: Trying to copy and past multiple workbook to three single sheet


    I think you said:


    For each workbook opened there are two worksheets. One is named “Informações de campo” and the other is named “Printer”.


    Based on a key value in range K4 on worksheet “Informações de campo”, the used range on worksheet “Printer” is to be copied to the next available row in a specific worksheet in a Workbook named “FR2013“.


    The worksheets in workbook “FR2013” are named SBS1213, ST1213 and MP1213.


    What are the key values and how do the relate to the worksheets SBS1213, ST1213 and MP1213 ?

    Re: Trying to copy and past multiple workbook to three single sheet


    The program looks at each sheet in the active workbook and has three "if" statements to check the name of the sheet. It makes no difference if you have only one "Printer" sheet.
    The "Next Without For" message is a programing error. The program will not even run when this error is detected.
    I tested the program and do not get this error.
    Are you copying the code exactly as I posted it?

    Re: Trying to copy and past multiple workbook to three single sheet


    I moved all your dimension statements to the beginning of your procedure. It makes it easier to read the code.
    Always use Option Explicit at the top of your code module. This forces you to dim every variable. This way you will not have a problem of misspelling variable names and variables will not be dimensioned as Variant unless you want them to be a Variant.


    I noticed "OutputCol" (which you have commented as a row and dimensioned as a variant) is doing nothing in your code.


    Try this revised code . . .


    Re: Before Close Event to save changes to Another Workbook


    I see a number of problems
    1. If several people have access to the master, there is no control to prevent more than one person to attempt to use the master at the same time.


    2. I assume the Before_Close Event in the Servant was in the Master. But this code causes the master to open and close. So when the Master closes it causes it’s copy of the Before_Close Event to fire which fires over and over as the Master is repeatedly opened and closed by the Before_Close Event code. Suggest adding an if statement to test if the Servant is running the code


    3. In your code there are two places you copy, but then do not past.


    Re: Change text in cell depending on range


    Try this . . .

    Re: Trying to copy and past multiple workbook to three single sheet


    After opening a workbook you need to loop through the worksheets in the workbook and test for the name of the sheet


    I added some suggested code to do this. The added code is identified with a string of asterisks.