+ Reply to Thread
Results 1 to 4 of 4

Excel VBA Code: Read-out, count and compare values with output in another sheet.

  1. #1
    Registered User
    Join Date
    01-19-2023
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    2

    Question Excel VBA Code: Read-out, count and compare values with output in another sheet.

    Hey Guys! I need your help.

    I'm working on my Equipment list and I was hoping to make it a bit more efficient (for now with formulas).
    I have my Data sheet where I want to input my data. And on a second sheet, it is counting, depending on the project documents,
    the Quantities of my Tools which I have checked-out or used there yet. (In the end I wanna create some charts and diagrams to post later, but that's really not a big problem now.)

    I was looking around to see if I find some VBA Macro Code and tried to Code myself (for some time already), but I got nowhere and a PivotTable is what I want to avoid.

    Maybe one of the master programmers here can help me out please? :-) (Excel Sheet attached)
    It would help me a lot.

    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Excel VBA Code: Read-out, count and compare values with output in another sheet.

    Hi there,

    Will the same document Number (e.g. "Doc-45") ever appear in the "Word Doc Number" column AND the "Excel Doc Number" column?

    Regards,

    Greg M

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Excel VBA Code: Read-out, count and compare values with output in another sheet.

    Hi there,

    I'm assuming that the answer to my question above is "NO"

    Take a look at the attached version of your workbook and see if it does what you need.

    Adding or editing an "Excel Doc Number" or "Word Doc Number" value on your "Data" worksheet will (if appropriate) add a new row to the Table on your "Output" worksheet, and the new row will be populated with the required formulas.

    The code assumes that all document numbers will have the format "Doc-##" or "Doc-###".

    The workbook uses the following code in a standard VBA CodeModule:

    Please Login or Register  to view this content.

    and the following code in the VBA CodeModule of the "Data" worksheet:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-19-2023
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    2

    Re: Excel VBA Code: Read-out, count and compare values with output in another sheet.

    Quote Originally Posted by Greg M View Post
    Hi there,

    Will the same document Number (e.g. "Doc-45") ever appear in the "Word Doc Number" column AND the "Excel Doc Number" column?

    Regards,

    Greg M
    Hi Greg!

    It should not, no. It autogens a number for the document and depending of its a .docx/doc or a xlsx/xlsm it will be put into Excel or Word.
    Last edited by T.Miralles; 01-20-2023 at 03:55 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2018, 04:41 AM
  2. Compare values and output cell titles, able to output multiple results
    By TMG2016 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-07-2016, 11:42 AM
  3. [SOLVED] Code to Compare two lists and output yes/no, Help!
    By dnwadams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2015, 04:04 AM
  4. Vba code to compare the 2 sheets and paste the values in 3rd sheet
    By Abinaya in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-02-2014, 01:47 AM
  5. Need VBA code to make an excel sheet read only in an excel workbook
    By Nanimadhu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 05:43 AM
  6. Replies: 2
    Last Post: 06-04-2012, 06:57 AM
  7. Replies: 2
    Last Post: 11-29-2007, 07:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1