Posts by HowardC

    I have a source workbook called "Data Account number Import.xlsm " (Sheet “Data import”)


    I need to extract the account numbers in Col G and paste these in Col M on workbook ‘Sales by Branch.xlsm” based on the following criteria



    The criteria is a follows


    1) Where the account no. in G and the positive value in Col I in "Sales by Branch.xlsm" sheet "Imported Data" matches the ref no in Col A and the Value in Col J on workbook "Data Account number Import.xlsm" sheet "Data Import" and the value in Col H on workbook "Sales by Branch.xlsm" sheet "Imported Data" is not zero, then the account number from Col G is to be copied from "Data Account number Import.xlsm" sheet "Data Import" and pasted in Col M in the destination workbook in the same row as the ref no. and value that matches
    2) Where the account no. in G and the negative value in Col I in "Sales by Branch.xlsm" sheet "Imported Data" matches the ref no in Col A and the Value in Col K (these are shown as positive values , but they are in a column with the heading credit and are credit balances although shown as positive, hence the use of ABS in my code) on workbook "Data Account number Import.xlsm" sheet "Data Import" and the value in Col H on workbook "Sales by Branch.xlsm" sheet "Imported Data" is not zero, then the account number from Col G is to be copied from "Data Account number Import.xlsm" sheet "Data Import" and pasted in Col M in the destination workbook in the same row as the ref no. and value that matches



    I have attached sample data files and also shown the manual result in Col N


    The current code is extracting some of the account numbers, based on the above criteria but there is a few not being extracted which I have highlighted


    It would be appreciated if someone would test my macro on workbook “Sales by Branch.xlsm” based on the above criteria and amend my code accordingly





    I have also attached my source & destination files Sales by Branch.xlsm Data Account number Import.xlsm



    It would be appreciated if someone can test & amend my code


    I have also posted on link below


    https://forums.windowssecrets.com/sh...rtain-criteria

    I have adapted code from the thread below so as to send an reminder to outlook calender of the due date in Row 6


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



    I would like this amended so that it sends a reminder for all the renewal dates in rows 6 to 10, instead of having a separate macro for each one


    It would be appreciated if someone could kindly assist me in amending the code to accommodate my request

    I have source data on Sheet1 for Jul 2017 (cell K1) on a particular workbook which is imported-see sample Data Below



    I have July 2017 on another Workbook (K4) and would like to extract the figures for each dept pertaining to the month Applicable



    I would like a formula to extract the data for the applicable month in J1 for e.g. data in row 2 applicable for Jul 2017 which in this example is-56,986, row3 which is -3,606 etc



    It would be appreciated if someone can assist me


    I have also posted on Mr Excel.com


    https://www.mrexcel.com/forum/…ata-based-month-year.html

    I have a workbook, where I have the branch name in Col B, A reminder date 10 date before the due date in Col C & the Due Date in Col in D


    I would like VBA to create reminders on Outlook. Where the reminder is amended on Excel , then it must also be amended on Outlook



    When running the macro, I get an error, file in folder does not support reminders


    it would be appreciated if someone could kindly amend my code or provide other code to do the above


    I have also posted on Windows Secrets a few days ago


    https://windowssecrets.com/for…utlook-reminder-Via-Excel

    I would like to whether it is possible to extract the name of the workbook attached on Outlook and add this to the end of the text on the macro code


    If so, could someone kindly provide me with the code



    I would like the section of code .Subject = to contain the "Summary Sales figures for + the name of the workbook attached or eg if name of workbook attached is BR.xls then the code must appear as
    .Subject = "Summary Sales figures for Br.xls






    I also posted on https://www.mrexcel.com/forum/…l-macro-subject-line.html

    Re: Copy Data based on two criteria


    Just to let you know that I run the macro on my Laptop this morning and the code runs perfectly. Not sure why I had to select the workbook from folder when running the macro on my PC at the office- must be some sort of gremlim that kept in. Anyway it is working and thanks for all your input

    Re: Copy Data based on two criteria


    I'm have run F8 to see if I can determine line of code where I asks me to select file, but It does not do this


    As soon As I run the macro, I need to select the workbook

    Re: Copy Data based on two criteria


    Hi Robert



    You kindly assisted my a while back with code to copy data



    I have amended the code to paste data on sheet "Recon Items" from row 10 onwards where "RS" and "'Not rec" appears on sheets STAT1 in Col AP (RS) and col V "Not REC"


    the data copies perfectly , except that when running the macro the file opens & I then click cancel



    Kindly amend code so that this does not happen




    Re: Copy Data based on two criteria


    Have Tested Code & it works perfectly


    If my source sheets consisted of several sheet,s How do change Set wsSource = Sheets("Data") to incorporate these ? for eg sheets "Data", "Data1", "Data2", "Data3"

    have data that has been imported on sheet "Data"



    I need to copy data as follows to sheet "Stock received"



    1) Where COL I contains RS and Col H does not contain "not received", then I need Col B:H copied to sheet Stock Received into Row 4 onwards
    2) Where COL I contains NR and Col H does not contain "not received", then I need Col B:H copied to sheet Stock Received into Row 21 onwards



    Your assistance in this regard is most appreciated



    I have also posted two days ago on http://windowssecrets.com/foru…ata-based-on-two-criteria

    Re: search functionality on User Form


    Thanks for your Input Roy. I will amend and use a listbox instead of the option button. The reason I wanted to search for the option button is that if one had many option buttons , one would have to spend time finding it

    Re: search functionality on User Form


    I have a workbook with option buttons, where I would like to be able to search for a option button and for this then to be selected


    I have have attached a sample workbook that contains several option buttons. It would be appreciated if you could assist me by adding search functionality to find a particular option button and to select the option button searched for


    It would be appreciated if you could kindly assist me