Search:

Type: Posts; User: Ramaseko

Page 1 of 3 1 2 3

Search: Search took 0.11 seconds.

  1. Re: Selective copying from notepad and pasting into excel

    As always, Many thanks WestConn1. Will try this in a moment
  2. [RESOLVED] Selective copying from notepad and pasting into excel

    Hi again guys!

    I am trying to copy some content from a a very big txt file to Excel.
    Ideally the code should read;
    -every line that starts with # copy and paste into cell A1
    -then beneath...
  3. MsOf07 Re: Exiting loop once condition is met

    Thanks Westconn. I think I had been placed Exit For i wrong place before. Now works, Thank you so much!
  4. MsOf07 [RESOLVED] Exiting loop once condition is met

    I have code below which is a part of a macro that I use to generate reports from an excel scheduling tool. How can I ensure that once function "TaskActive" is true in "E" & HH range then update word...
  5. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    This worked, many thanks koolsid!! :)
  6. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    Oh I see what you mean, In my case If condition in range is not met then code exits, then another range until end of spreadsheet.
    I will incorporate this and see if I get any luck.
  7. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    Many, many thanks for your help!
    I take it I will now change function to;

    Function TaskActive(rng As Range) As Boolean
    Dim aCell As Range, dtStartDate As Date
    For Each aCell In rng...
  8. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    Hi koolsid,

    Please find attached with comments. Please let me know if comments are unclear.

    98941
  9. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    Have done and posting sample with comments asap!
  10. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    oh! thanks for your help Koolsid and yes I can also see the red highlight now.
  11. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    Oops! looks like the red highlight didn't work.
    I know the type mismatch might be to do with values, but all values in E range are in date format
  12. Replies
    13
    Views
    1,470

    Re: Using End(xlDown)

    Thanks koolsid for your prompt response;

    The function accepts a range;
    Here's full code where I have included your solution;


    For Each rng In rngOutputColC.Offset(, 9).Cells
    ...
  13. Replies
    13
    Views
    1,470

    [RESOLVED] Using End(xlDown)

    Hi Guys,

    How can I amend this code so that the when in column E all non empty cell values beneath active cell (including active cell) are compared to TaskActive function?


    If...
  14. Replies
    7
    Views
    1,163

    Re: Argument Not Optional

    This works now guys! Many thanks for all your help.
  15. Replies
    7
    Views
    1,163

    Re: Argument Not Optional

    Many thanks techgnome

    My laptop crashed and could not post reply y'day. Yes I have changed code where function is called to:

    If recentwork (Range ("I" & rng.Row).Value, Range ("J" &...
  16. Replies
    7
    Views
    1,163

    Re: Argument Not Optional

    Sorry guys! :blush: I have amended function to below but same error in main sub,


    Function recentwork(dtreleaseDate As Date, dthandoverdate As Date) As Boolean
    If dtreleaseDate <=...
  17. Replies
    7
    Views
    1,163

    Re: Argument Not Optional

    :) Oh! Thanks guys. I will try that just now
  18. Replies
    7
    Views
    1,163

    Argument Not Optional

    Hi Guys!

    I have the following function where when I try and run the macro I get "Argument Not Optional" error in main macro

    The part in main macro where function is called is as follows;

    If...
  19. MsOf07 updating bookmarks in word from excel spreadsheet

    Hi Guys!

    I have VBA code that is presently looping through column B in excel and updating column A bookmarks in table in word document. I have created bookmarks (A1 to A5) in this table each in...
  20. MsOf07 Re: copy only cells with data in a range

    Very many thanks vbfbryce. I have followed your instructions and the code is behaving well.

    Many thanks! :)
  21. MsOf07 Re: copy only cells with data in a range

    Many thanks for your prompt reply and code vbfbryce.
    In this case the last cell of interest is one that has "STOP" in it. That is code exists when cell with STOP is activated. Is there a way of...
  22. MsOf07 [RESOLVED] copy only cells with data in a range

    Hi Guys,

    I am trying to develop a macro that copies cell data in a column range. However in this column range other cells are empty and I want the macro to ignore all empty cells. Ideally the...
  23. MsOf07 Re: subtracting working days from a date value

    Thanks! Seenu.

    I have resolved this through
    Application.WorksheetFunction.WorkDay

    :)
  24. MsOf07 [RESOLVED] subtracting working days from a date value

    The below code extracts a date range and updates column "I". I want to use same code to update column "M", but this time I want the code to subtract/take away 10 working days from date values in "I"....
  25. Replies
    1
    Views
    524

    MsOf07 Re: Presetting a formula in cells

    Have tweaked the code and it works!
  26. Replies
    1
    Views
    524

    MsOf07 [RESOLVED] Presetting a formula in cells

    Just a quick question guys! I have a macro that populates cells in a a certain column with numbers. Is it possible that upon update of these cells, they are automatically multiplied by 0.5.

    E.g....
  27. MsOf07 Re: Looking for specific values in selected range VBA

    You are the man Koolsid! I don't think I was even thinking straight anymore. But hey thanks to you!
    This works now so can move on to next stage.

    Many thanks! :)
  28. MsOf07 Re: Looking for specific values in selected range VBA

    You are the man Koolsid! I don't think I was even thinking straight anymore. But hey thanks to you!
    This works now so can move on to next stage.

    Many thanks! :)
  29. MsOf07 Re: Looking for specific values in selected range VBA

    G9,11,12,15 and 18 should also be returning a value right i.e. 1 for all the others and 2 for G18?
    But at present there's nothing
  30. MsOf07 Re: Looking for specific values in selected range VBA

    Can not thank you enough Koolsid. Here's my attached test doc.
    I have it running but for some reason it has put only zeros in some cells in column G. See attached file. I have only realised that...
  31. MsOf07 Re: Looking for specific values in selected range VBA

    Awesome! That code you've highlighted, maybe I got it muddled up as I had tried to record a macro too. As of the cells, It's my error again in my thread. The code should merely count the cells with...
  32. MsOf07 Re: Looking for specific values in selected range VBA

    Thanks! Koolsid

    SumOfColoredCells = SumOfColoredCells + MyrngColors.Value

    On debug this gives overflow error 6, any ideas what this is?
  33. MsOf07 Re: Looking for specific values in selected range VBA

    The first one should be looking into column C until it gets STOP then should exit.

    The second bit should look into entire row for colored cells whilst code iterates from cell C8 in Column C until...
  34. MsOf07 Re: Looking for specific values in selected range VBA

    Thanks Koolsid!

    I have come up with the following code, it doesn't give error messages but is not putting value in column G i.e. sum of all colored cells and stepping into it (F8) runs endlessly....
  35. MsOf07 Re: Looking for specific values in selected range VBA

    Westconn1

    Background color is just a manual fill by user.

    Many thanks!
  36. MsOf07 Re: Looking for specific values in selected range VBA

    Hi Adrian

    Many thanks for you reply. Perhaps my title and thread are not as clear and I'm still a VBA novice. What I want is for code to look into C8 then if there is value it looks for colored...
  37. MsOf07 [RESOLVED] Looking for specific values in selected range VBA

    Hi guys!

    From below, once I manage to select 100 cells to the right, how do I then look into these selected cells to see if they have a background color other than black. Total the sum of coloured...
  38. [RESOLVED] Iterating through a column until condition is met

    Hi,

    Am not sure what I'm trying to achieve is realistic. I want to run through a specific column (column B) and when cell reads begin, the macro works through all cells with data in this column...
  39. Re: Resetting font color in excel after update

    Many thanks guys. I tried changing the date format and yes it works Seenu.
    Resource Dragon, I'll try and put something that converts the dot to slashes or hyphens.

    Really appreciate all your...
  40. Re: Resetting font color in excel after update

    Thanks! I'm currently out and will try this when i get back home and will let you know how i get on! Thanks for your great help.
Results 1 to 40 of 84
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width