Posts by Werner

    Re: Vlookup a number and give the value of the cell next to it


    Hi,


    It does not work. In an Excel French version, it says #nom? or probably in english #name? . I had to translate the formula in order for Excel to understand it (Microsoft should have had let it in English!) :


    =Recherchev(A2;B1:C50;2;false)


    Or


    =VLOOKUP(A2;B1:C50;2;false)


    Werner

    Hi,


    I want to do a vertical lookup in an Excel sheet.


    Let's say my formula is in cell A1.
    I want to write a number in cell A2. The lookup in cell A1 will check in a list from B1 to B50. When it finds the same value in that range, I want the lookup to display the value from the cell just right of it, in the column C.


    So for example, I write 1995 in A2. The lookup in A1 finds it at B10 and in A1 (where's the lookup formula), the value of cell C10 is displayed.


    Thanks for any help!


    Werner

    Re: Converting decimal numbers to text with dot numbers


    Thank you a lot Will Riley! It was exactly what I needed. It did the job! Now I can copy from Excel my decimal numbers in format number with two decimals in a Lotus sheet. Lotus considers them as real numbers now.


    Regards,


    Werner

    Hi,


    At work, we work with both Lotus 123 and Excel 2003. Lotus will be gone next year, but for now, the official mean to publish our reports is Lotus.


    With my work, I copy/paste a Lotus page to Excel. I use the following macro to convert Lotus format numbers (which Excel considers as text) to real numbers (big thanks to Dave Hawley for this one 2 years ago) :



    Source : http://www.ozgrid.com/forum/sh…d.php?p=184087#post184087


    The problem is that I need to send back this data in Lotus. Excel considers decimal numbers with a coma as real numbers and numbers with a dot as a text. This previous macro fixes that. However, Lotus works the other way. Only numbers with a dot are considered real numbers. So I would need to find a way to code a macro that converts any numbers in the Excel sheet to a number with a dot. It's a bit like doing the opposite operation.


    For example, 6504 would become 6504.00 and 0,04 would change to 0.04 .


    Is it possible? It would then be easy for me to simply copy and paste those cells in my Lotus sheet.


    Thanks!


    Werner

    Re: Missing row when printing a splited sheet


    I am sorry. I have used the wrong words to explain my problem. I use MS Office 2003 in french version. And I mistranslated the option I used. I used Freeze panes and not split. In French, Split is "Fractionner" and freeze panes is "figer les volets". I just explained my problem with the wrong option.


    But for the lack of rows, I tried using 15 rows instead of 16 and despite that, the first row is still missing. Even worst, I indeed tried the split option after that, and this one too does the same behavior.


    I don't know what to say about that. I will continue to investigate this matter.


    But I want to thank you for your help!


    Werner

    Hi,


    I have a sheet which contain an horizontal split (Option Windows/Split). I have selected the row 16 to split the sheet so that I can have a header when I scroll down. However, when I print this data sheet, the first row, at the top of the screen, is missing. In the preview and on the printed sheets, the first row is missing on the next printed pages. In the first page, all is ok, but not on the next ones.


    Does someone have an idea why Excel is behaving like that?


    Thanks!!


    Werner

    Re: Controling macro activation conditions


    It works great! Thx! And I solved the second condition. You are a professionnal Excel athlete norie hehe ;) I've also added the complete code in this reply.


    Regards,


    Werner


    Hi,


    I want to do a mathematic macro that I will activate in an active cell with a shortcut. But I don't want the macro to be able to launch itself if I am in the wrong sheet and below row 16. I have a problem doing those two conditions. Here's the beginning of my code. It gives me an error in the first If and I don't know if the other If is Ok for the row. Could anyone help me?
    Thx!


    Werner


    Re: Managing workbooks creation


    Thx norie!! It works perfectly! I included my code in this post after adding your modification. Again many thanks!


    Regards,


    Werner


    Re: Managing workbooks creation


    Norie, you gave me the way for the solution! Creating the workbook that way will solve my problem. I have only a little problem adding my copy in thenew workbook. It says incompatible type. Could you look at the code and help me find why it does not work.
    Thx!


    Werner


    Re: Managing workbooks creation


    Well the problem is that I created a macro that does a copy of a sheet named PI. First, it does a copy named PI (2) and changes some numbers to be properly prepared for a mathematic use in the real copy. Then a second copy is made to another workbook for the real work. But I must destroy the temporary copy into the original workbook, and then specify in the code the name of the new workbook to select the real copy in the new workbook.

    Hi,


    I need to create a macro that will create a new workbook and give a name to the workboox depending of the actual opened workbooks. For example, Workbook1, Workbook2, Workbook3 are opened. So my new workbook would be named Workbook4. The way it's named just before the number is not important. I just need to have a name with a number depending of the precedent workbooks. And my macro needs to copy in that newly created workbook the active sheet of workbook1. Does anyone have an idea about how I can do it?
    Thx!


    Werner

    Hi,


    I'd like to know how I could do a macro that does a validation by checking if there is or not an autofilter on a selection. It would be something like :


    Code
    If Selection.autofilter = true Then
    
    
    'do something
    End If


    Is it possible?


    Thx!


    Werner

    Re: Save number format in a variable


    I've found again the solution by searching in the ozgrid forum database. Link :http://www.ozgrid.com/forum/showthread.php?t=35763


    Here's the final code to my macro for converting monthly fees into annual ones :


    Re: Save number format in a variable


    I've a problem. My code works if I stay in the sheet "Formulaire". Does anyone know how to put in a variable what was the variable sheet tab (just like we put a cell place in a range variable) ? And then I must find a way to activate this sheet tab again just like we simply do sheet("Formulaire").select ?