Posts by Simon Lloyd

    Re: Variable Not Assigning Correctly


    Hi I put some test figures in two workbooks, ran your code and it didnt create an error, could you explain or provide the values you are using in a test book and attatch it?


    Regards,
    Simon

    Re: Conditional Formatting For More Than 3 Conditions


    In fact this will probably work a bit slicker for you, you need to paste it directly into the worksheet module you are working on, again the numbers of the colours aren't what you asked for but you will be able to get those as above.


    Regards,
    Simon

    Re: Conditional Formatting For More Than 3 Conditions


    Below is just one routine...Case Select could also be used.


    Open Visual Basic Editor(ALT + F11) and select your workbook Project in
    Project Explorer. Insert>Module. Copy/paste this into the module. Assign it
    to a button or Run it from Tools>Macro>Macros, or you could put the body of the code into a worksheet change event so it will change everytime a cell is changed


    Note, it is set up to work on column A only. Adapt column and number ranges
    to suit. The colour values aren't the ones you asked for all you have to do is a record a macro whilst changing some cells to the colours you want and then look at the macro to get the colour indexes.


    Regards,
    Simon

    Re: Macro Finds And Copy All The Cells Above


    This should do what you want, i had a small problem with it that i had to get help for but it works perfect now!


    Regards,
    Simon

    Re: Sort Userform Textboxes


    Andy, i didnt tke the credit or the mick!, it was as i was finishing working nights and didnt have the inclination to type a lot as i said in my first reply

    I have never or will ever pass other peoples work off as my own!, on more occassions than i can remember i have admitted things are not within my capability!

    My apologies if you were offended Andy!

    Regards,
    Simon

    Re: Sort Userform Textboxes


    I was right heres the code for 12 boxes the array is hard coded to 12 as per your post!, put a button on your form and included this code for it.
    Regards,
    Simon

    Re: Sort Userform Textboxes


    I dont know how to do it, but i know that doesnt help.


    The theory is, you create an array out of the 12 boxes and examine them to return your required value, the array would probably have to be transposed but you dont have to deliver the array to a sheet to examine it.


    I'll have a look around for examples and post back!


    Regards,
    simon

    Re: Saving A Worksheet As A File


    Sorry must be driving you mad this is my final amendment! I didnt read what you wanted properly!


    Regards,
    Simon

    Re: Saving A Worksheet As A File


    Just an amendment to remove the remaining two sheets in the new workbook

    Regards,
    Simon

    Re: Saving A Worksheet As A File


    Just knocked this together it should suit you!


    Hope it helps!


    Regards,
    Simon

    Re: Save As Method


    This activated by keyboard shortcut or comand button would do the trick


    Code
    Sub SvWbook()
    Dim T1
    T1 = InputBox("Enter your Save As Name", "Workbook Saver")
    ActiveWorkbook.SaveAs T1 & ".xls"
    End Sub

    regards,
    Simon

    Re: Saving A Worksheet As A File


    Hi just put this in a standard module use a command button to run it

    Code
    Sub SheetCopy()
        
         With Sheets("sheet3").Copy
           Application.SheetsInNewWorkbook = 1
         End With
        ActiveWorkbook.SaveAs "Moved Sheet" & ".xls"
    End Sub

    Regards,
    Simon

    Re: Save As Method


    In my libraries and references i have the following checked (and im on a network!) Visual Basic For Applications, Microsoft Excel 11.0 Object Library, OLE Automation and Microsoft Office 11.0 Object Library,if these are checked then you need a new install or repair.......and it will have to be IT!


    regards,
    Simon

    Re: Save As Method


    Quote from Username99

    So how would I reinstall the library? Thing is, IT installed Office on each workstation and getting something done by our IT department is like getting hell to freeze over, aint happening.


    So is there something I can do within Excel to get the library installed?


    Unfortunately you probably wont have the rights to install adapt or update your version of office even if you had the office professional disk!................therefore please wait quietly for hell to freeze!


    Regards,
    Simon


    P.S they usually have the whole of foffice stored in a location on a network server from which the update or install!