Posts by Paulod

    By "Use the SUM of columns B and C instead of the PRODUCT" I mean that the original function on the heat map sheets uses the values in each row for columns B and C and multiplies them together, the resulting value determines which cell of the heat map the value of cell A is placed. I'm wanting the values in B and C to be added together instead of being multiplied and the value in cell A put in corresponding cell of the heat map.

    There are plenty of posts asking for help with this common code and I have made it work for its intended purpose of multiplying the values for Likelihood and Consequence and placing the corresponding Risk no. from the adjacent cell in each row onto a heat map but I am now wanting to change the code below to add the 2 column values instead of multiplying them, help please.
    The formula used on the sheet is;


    =ProbSevScore($E5,G$2,$A$3:$A$42)


    ....and this is the vba function

    Re: Change font colour


    Hi Alan. Cheers I sort of worked out adding your code for myself but it takes forever as it looks at each character and there are 1000's of them in the column. This is what I have now.

    Re: Change font colour


    Thanks Alan but it appears to only works in cells where all the text is green. Each of my cells has lines of text that are green and lines of text that are black and I only want to change the lines that are green.

    Hi I am stumbling with this so ask for your help please.
    My spread sheet has dozen or more columns with cells that contain multiple lines of text.
    In one column some of these lines of text are colored green and I would like code to hide the lines that are green by coloring them white when necessary, then un-hide by changing them back to green.
    I found and adapted this code but it looks at the entire spread sheet instead of just one column and takes forever before crashing.



    Re: error #2038


    Hey thanks for that Macro Man I zipped the file and its loaded. Perhaps you can help me with what I need, the post is called - Excel to outlook calendar

    Hi
    I'm trying to upload an xlsx file on another thread but when doing so a popup comes up with error #2038 and the file cannot be uploaded.
    Could someone please kindly explain why this happens and what to do to resolve the issue?
    All help appreciated :)

    Re: Latest entry


    Thanks for your brilliance Jindon, I changed the date format and it's worked perfectly. If you're ever in Auckland dinner is on me :)

    My spreadsheet has several thousand rows containing, amongst other information, names of clients and the dates they have been visited (these vary from case to case) . To save time I am after code that will enable the row that has the latest date each client was visited to be displayed on a new separate sheet.
    Help here would be well received.


    Sheet 1(existing sheet)
    A B C
    9/April/2015 Bill 3
    8/March/2015 Gavin 3
    8/March/2015 Bill 4
    1/April/2015 Gavin 2


    Sheet 2 (new sheet)
    A B C
    9/April/2015 Bill 3
    1/April/2015 Gavin 2

    Re: VBA to resize row to the same as tallest text box in that row


    I worked out that by adding parenthesis to the sheet name, i.e. With Sheets("Sheet7") fixed the problem.
    The reason for text boxes is to allow better formatting, in this case bullet points and indenting.
    If anyone can help me use the colour of source cells to format a 3D graph you'd be my new best friend. I manually do this and each time the data changes I have to update the appropriate column.


    [ATTACH=CONFIG]60857[/ATTACH]

    Re: VBA to resize row to the same as tallest text box in that row


    Hi Luke, thanks for helping me, you probably already figured out that I'm new to VBA.


    When I run the code I get Run - time error '1004' Application - defined or object defined error and when debugging this part of the code highlights.


    .Rows(mht(i, 2)).Rowheight = mht(i, 1)

    I need help to make rows expand to fit the largest text box within that row. I found the code below online, it works perfectly on the spreadsheet it came on but it doesn't work on my spreadsheet.
    Any help will be appreciated.
    Thanks in advance :)


    [TABLE="width: 500, align: left"]

    [tr]


    [TD="align: center"][/TD]
    [TD="align: center"]A
    [/TD]
    [TD="align: center"]B
    [/TD]
    [TD="align: center"]C
    [/TD]

    [/tr]


    [tr]


    [td]

    1

    [/td]


    [td]

    date

    [/td]


    [td]

    transaction details

    [/td]


    [td]

    amount

    [/td]


    [/tr]


    [tr]


    [td]

    2

    [/td]


    [td]

    26.3.2014

    [/td]


    [td]

    EFTPOS

    [/td]


    [td]

    100.00

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td][/td]


    [td]

    Supermarket

    [/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    4

    [/td]


    [td][/td]


    [td]

    EFTPOS

    [/td]


    [td]

    50.00

    [/td]


    [/tr]


    [tr]


    [td]

    5

    [/td]


    [td][/td]


    [td]

    Tyre Shop

    [/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    6

    [/td]


    [td]

    25.3.2014

    [/td]


    [td]

    EFTPOS

    [/td]


    [td]

    105.67

    [/td]


    [/tr]


    [tr]


    [td]

    7

    [/td]


    [td][/td]


    [td]

    Mobil

    [/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    8

    [/td]


    [td]

    24.3.2014

    [/td]


    [td]

    Bakery

    [/td]


    [td]

    8.50

    [/td]


    [/tr]


    [/TABLE]

    [TABLE="width: 500, align: left"]

    [tr]


    [TD="align: center"][/TD]
    [TD="align: center"]A
    [/TD]
    [TD="align: center"]B
    [/TD]
    [TD="align: center"]C
    [/TD]

    [/tr]


    [tr]


    [td]

    1

    [/td]


    [td]

    date

    [/td]


    [td]

    transaction details

    [/td]


    [td]

    amount

    [/td]


    [/tr]


    [tr]


    [td]

    2

    [/td]


    [td]

    26.3.2014

    [/td]


    [td]

    Supermarket

    [/td]


    [td]

    100.00

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td][/td]


    [td]

    Tyre Shop

    [/td]


    [td]

    50.00

    [/td]


    [/tr]


    [tr]


    [td]

    4

    [/td]


    [td]

    25.3.2014

    [/td]


    [td]

    Mobil

    [/td]


    [td]

    105.67

    [/td]


    [/tr]


    [tr]


    [td]

    5

    [/td]


    [td]

    24.3.2014

    [/td]


    [td]

    Bakery

    [/td]


    [td]

    8.50

    [/td]


    [/tr]


    [/TABLE]