Posts by Bob Chiskey

    Dear Forum,


    I have the below 2 sets of code and I am trying to combine them into 1 (as a newbie not sure if this is doable or if there is a better way to do this?). The outcome should be that:


    A new sheet is created when the Transfer Sub runs, and;
    The formatting and forumlas from the ws named "Template" are copied to the new sheet and any additional new sheets that are created when the FormatNewSheet sub runs.
    Please could yo help me merge the 2 or suggest a better way?



    Kind Regards
    Dave

    Re: VBA Copy Paste to each new worksheet with formatting and formulas


    Could someone please advise if this might be the correct fix to my question?, I only need to know how to change "Bob" in the code below so that the formmating would copy to each new sheet with a different name. Does VBA work with wild cards like "*" for example?:


    Code
    range("B2:B5002").Copy Destination:=Sheets("Bob").Cells(startrow, 2)

    Dear Forum,


    I have the below code running in my project that transfers data from a worksheet called "Update Quality Check Data" to other weeksheets based on user names by 1 of 2 ways, either:

    • By seeing the user name of the worksheet already exists and just copying the relevant data; or,
    • By creating a new worksheet with the user name as the ws name and copying the data from the data shee


    What I would like to add would be when a new user sheet is created the format and forumlas from the first usersheet are copied into the new sheets and each additional user sheet that is created.


    I have seen many threads to copy paste and the arguements between clipboard and pastespecial but now I am rather confused and not sure how to do this for sheets that do not currently exist. Could some please help me?


    I have attached a sample sheet, so I would just want the formulas and borders copied from the worksheet called Bob forum.ozgrid.com/index.php?attachment/69687/to each new sheet that is created.


    Re: VBA Transfer Macro


    Hi Ger,


    Can you advise me please? I'm not so great with VBA (yet). I already have the below code for the Submit Buttom (CommandButton1), can you advise me where / how I add the transfer procedure?


    Dear Forum,


    I currently have the below code in my workbook that transfers data from a data sheet into individual employee sheets. This works fine so far but I would like to ask if anyone could please assist me in a few adjustments?


    What I am trying to achieve with the amendments would be:


    1. Is it possible when the user hits the Submit button on the UserForm1 that the sheets automatically update? reason I ask is that now it works great but I need to run the code each time new data is added, and this then means duplicate entries, which would also lead me to ask;
    2. if 1. is possible is there a way to avoid duplicate entries? however it is possible the same ticket number a. could appear for more than 1 user and b. could appear more than once for the same user




    Kind Regards


    Bob

    Re: VBA Find Copy Paste


    Thanks Fuzz-Head you are a legend it works like a charm! I would just like to ask if the following would be possible as an adjustment?


    1. Is it possible when the user hits the Submit button on the UserForm1 that the sheets automatically update? reason I ask is that now it works great but I need to run the code each time data is added, and this then means duplicate entries, which would also lead me to ask
    2. if 1. is possible is there a way to avoid duplicate entries? it is possible the same ticket number a. could appear for more than 1 user and b. could appear more than once for the same user


    Can the code be appended to the Submit button to achieve this?


    Kind Regards


    Bob

    Dear Forum,


    Newbie to VBA here and would appreciate some advice or help on the below query please.


    I have searched through the forum and Google and found a few bits and pieces that almost match but I dont have the knowhow to amend the code. What I am trying to achieve is:


    - I have a basic userform to enter data, when a command button is clicked the data is transferred into a ws called "Update Quality Check Data" - this works perfeclty so far
    - What I am now trying to do is find data in the ws "Update Quality Check Data: transfer it to a table in another sheet.


    In the ws:


    - Column A:A contains Months
    - Column B:B contains Names
    - Column C:C contains Ticket Numbers


    What I need to do is transfer onlythe Ticket numbers to seperate sheets If month and Name match, the sheet looks something like this:



    A B C
    June John 123
    June William 456
    July John 789
    July David 101
    July Bob 112


    So to summarize what I would like to achieve is:


    IF A:A = "June", AND B:B = "John"
    Copy C:C orders of John in June, July etc. to ws named John starting at cell D5 and going down until there is no more matching entries


    I have tried to have a go as per below but failed miserably so far:




    Is this possible? and as people enter the data into the useform would this automatically update the table on John's ws?


    Sorry for the complex babble, hopefully it makes some sense.


    Kind Regards


    Bob