Posts by tjrt

    Re: Object Variable or With Block Variable not set. Quite confused here.:(


    Thanks for the quick reply, Flash. I mean, norie.


    Wow, I am an idiot! You are correct!


    Quote

    What are you trying to do?


    In Column A2:A10 if any of those cells value changes either Hide or Show Userform1. Values in that range are already in place and depending which value was selected respond accordingly.


    I have changed your code in post no. 4 to,



    And now it seems to work as I want.


    Thank you norie!

    Re: Object Variable or With Block Variable not set. Quite confused here.:(


    Thanks for the quick reply, Flash. I mean, norie.


    Wow, I am an idiot! You are correct!


    Quote

    What are you trying to do?


    In Column A2:A10 if any of those cells value changes either Hide or Show Userform1. Values in that range are already in place and depending which value was selected respond accordingly.

    Hi to all of you,


    Could anyone please direct me in the right direction and tell me what is wrong with my code. It does not work. Feel free to call me an idiot.! LOL



    Any help would be most welcome,


    Thanks.

    Re: Find Blank Cells in a Column and then input a Value


    @ apo,


    Yes you are correct, but if there would be an empty row between the Header Row and the Data set, the code does not work. this scenario would aslo apply to jindon's Code, where it returns a value in any Blank Cell within the CurrentRegion, from the Cell above, and also adds an Extra Row at the bottom of the Data Set.


    I am merely attempting to tweak the Code to cater for an empty row below the Headers in Row 1.
    It also fails if there should happen to be an empty row within the Data Set. As soon as the Code reaches the first empty Row within the Data set, it stops right there.:(


    Thank you for your interest guys!:)

    Re: Find Blank Cells in a Column and then input a Value


    @ royUK,


    Maybe you meant to have your code as follow?:)


    Code
    Option Explicit
     
    Sub FillBlanks()
        Dim rC1 As Range
         
        For Each rC1 In ActiveSheet.Range([COLOR=#ff0000]"C1"[/COLOR]).CurrentRegion.Columns(3).Cells
            If IsEmpty(rC1) Then rC3.Value = rC1.Offset(-1).Value
        Next rC1
    End Sub


    Till Later.

    Re: Code for finding duplicates to ignore empty Cells


    @ [Blocked Image: http://www.ozgrid.com/forum/image.php?u=115597&dateline=1300466393] smuzoen,


    Thank you for your contribution. It seems that we have posted our replies at the same instant.


    In my first post of this Thread, I have posted a link to a thread dealing with not only clearing duplicates, but also the original duplicate value.


    I have tried to implement your alternative options, without success. If you click on the "Delete Duplicates" button a second time round, it messes up the actual data.


    Thank you.:)

    Re: Code for finding duplicates to ignore empty Cells


    @ KjBox,


    Thank you for your suggestion. In the attached sample Workbook, you will see that it works 100%, with the "Delete Duplicates" Button, on the first click only.:(


    If you click it again, it seems to regard empty Cells in the range A to C as "duplicates", and deletes data that should remain.


    @ snb,


    In the same attached sample Workbook, I have added your proposal, and a Button called "SNB". Because I have "Option Explicit" at the top of my Code, I had to add some Dim statements to your Code. It returns a vertical message box, too large for the screen. It does not delete duplicates. I am afraid I do not fully understand what your suggestion is supposed to do.:(


    Thank you guys!:)

    Hello all,


    In this Thread Jindon has provided a sample Workbook, with some fantastic Code.


    http://www.ozgrid.com/forum/showthread.php?t=162443


    And here is the Code:



    How would one tweak this Code to ignore empty cells, so that it does not consider empty cells as duplicates?


    Thank you.

    Re: Automate a recorded Macro to shorter Code to hadle variable Ranges


    Hello cytop,


    Thank you for your response,


    Quote

    Some users cannot, or will not, download attachments.


    Sorry, I was not aware of that, in this Forum.


    I would appreciate some help as how to automate the below recorded Macro in such a way that it goes through each row, remove duplicates, and then continue to the last row within the range, which may vary from time to time.:-(



    Once again, Thank you.:)

    Re: Copy Shape to new Sheet, only if it does not already exists


    Hello cytop,



    If any Sheet happens to have any other Shape on it the, Shapes("Curved Left Arrow 1") does not copy. I need to find a way to work with Shapes Names, i.e. If a Sheet does not contain a Shapes("Curved Left Arrow 1"), then paste it, else ignore.


    Could you help me with that please?;)

    Re: Copy Shape to new Sheet, only if it does not already exists


    Hello cytop,


    Absolutely AMAZING!:)


    This is one of the most BRILLIANT replies and solution to a problem, complete with comments, I have ever received from any Forums alike! Sorry, there just does not exist an "Alike" forum.


    Thank you so much for your help!:)


    It works FANTASTIC!:dance:

    Hi all,


    I have a Master Sheet, Sheet1, with a Named Range in Column M which gets updated with a Button called "Update Sheet Names"



    On Sheet1 I also have a ComboBox from where I can select to activate any chosen sheet. Objective is, if it is a new sheet which does not already contain a certain Shape, to have that Shape copied to that Sheet, else don't copy it.



    Please see the attached WorkBook. I have tried almost anything, but just cannot get it to work.:(



    Any help will be greatly appreciated.:)

    Re: Code to find true Sheetname


    Hello rdperkins,


    I agree with royUK on this.


    Also what would happen to the Original Sheet Name if a user changes any Sheet Name more than once or twice?


    The PrevShtName will only recall the last Name a Sheet was changed to, discarding the Original Sheet Name.


    Would it not be better to keep it short, simple and sweet? As per the revised attached sample WorkBook, for example?:)