Recent content by Nomadscot

  1. N

    Excel - finding shapes

    Hi Rich, Thanks so much for your reply, which tracked down my runaway shapes like a bloodhound on the scent of a large bowl of Pedigree Chum! In fact I couldn't fully understand the full routine - particularly the 'print' reference, so I remmed out all but the last line and then cycled through...
  2. N

    Excel - finding shapes

    Good morning all, This should brighten up your morning. I've got myself in a bit of a fix. I've lost two shapes in a worksheet, and can't find them because they are formatted with no fill and no borders. There are a number of other shapes in the sheet which are formatted and so are visible...
  3. N

    Excel VBA loop

    Hi again, Gasman, That was my original method, however as I explained above, it took ages to copy the master template - I mean really ages. However by inserting a new sheet and then constructing the form with macro(s) on the newly inserted sheet it is ready more or less instantly. This is...
  4. N

    Excel VBA loop

    'Morning, :) And when I was using formulae in the spreadsheet that's what I did. And now that I'm building the spreadsheet with macros rather then directly on the sheet, this query was to find out how to do the same thing in VBA rather than having to type hundreds of lines of code. Anyway, I...
  5. N

    Excel VBA loop

    By the way, namliam, it is perhaps appropriate to mention that the '+2' is a result of referring to a previously defined list of items into two separate lists, with every alternate row going to one of two separate new lists, using 'copy and paste' to minimise the work involved. Did I explain...
  6. N

    Excel VBA loop

    Good morning namliam, Thanks for your comments. I think the answer to your first point, is that these lines are written in VBA rather than as formulae on a worksheet. The reason this is being run as a macro is that I previously created a form in a workbook - a 'master' - with a macro to...
  7. N

    Excel VBA loop

    Thanks so much, Gasman - works perfectly, and I even managed to understand it (eventually) and adapt it to the next column, with a different formula structure! Only 8 more columns to go.... :) Many thanks again, and a 'Thank You' duly awarded.
  8. N

    Excel VBA loop

    I need to write 40 lines of code in which only two cell references change in each line. Can I do a 'For Next Loop' for this instead, and if so how would this be constructed? The code I have is: With ActiveSheet .Range("A181").Formula = "=IF($AA$2<2,"""",A180+2)" .Range("A182").Formula =...
  9. N

    VBA - select a range based on cell content

    Wonderful -works perfectly for what I want to do. Thank you so much. :)
  10. N

    VBA - select a range based on cell content

    Good Morning all, Can someone please tell me if it possible to select a range of cells (which are to be cleared), the starting cell of which depends on whether or not a cell has a value in it? For example, if cell A56 is not populated then I would like VBA code to select range A56:T167. If...
  11. N

    Last populated cell(s) in column(s)

    Glad to have made your acquaintance Brian. Thanks again.
  12. N

    Last populated cell(s) in column(s)

    You know, Brian, I've been using Excel and VBE for perhaps 15 to 20 years now. During that time I like to think that I've built up a reasonable knowledge of both. Not like yours of course, but enough for my needs. However due probably to a) working under time constraints and b) laziness, I have...
  13. N

    Last populated cell(s) in column(s)

    Hi Brian, Hope you had a good weekend. Pleased to say that the code is working fine. Exactly what I wanted. I do have one problem though which I didn't foresee and for which you may have some ideas. If the item to be deleted is the last one on the infamous list it won't delete, because it...
  14. N

    Last populated cell(s) in column(s)

    ALso for Mods attention, please Good morning Brian. I can see that an apology is in order. I have no idea why I started calling you John, and can only quote your comment - "I'm getting careless in my old age, I do apologise". I think perhaps that the change of name may have been triggered...
  15. N

    Last populated cell(s) in column(s)

    By the way, John, I note your code example. Thank you. I'm too tired to do anything about it tonight and I'm off to bed soon, but I shall be working on it tomorrow. TVM N.
Back
Top Bottom