Daniza

Autoit for Excel

9 posts in this topic

Im sorry last time I login i use my mobile phone, and opera mini browser does not support the text input.

Well back to my concern im working on restaurant and all item sold are punch in POS and by the end of the day, we extract the sold item and format it to a excel file, and we start to input it manually to another excel file for our daily inventory consumption.

Possible to use Autoit to find the item on the column "A" and if the item was ordered, then it will get the value next column "B" for how many items sold. then transfer the value to other file for the consumption report column "C"

like:

File excel 1

            A                             B

    PRODUCT            QUANTITY

1. ASADO PAO            5              (if Asado pao is present on the column A then copy the value of column B)

2.BOLA PAO                3

3. TAIPAO                    4  

 

file excel 2

Daily Inventory

         A                          B

      Product      Consumption

1. Asado pao              5

 

 

We do it manually we print the file excel 1 then manual input on the file excel 2, we consume time and print and sometimes wrong input. So if this is possible can you lead me where to start and im happy to use google see some example there and make a try and error thanks guys.

Share this post


Link to post
Share on other sites



did you try to use excel formula? like Vlookup and if condition, and data validation?

1 person likes this

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

AutoIt comes with an Excel UDF. A lot of examples plus the wiki describe how to use. 

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
10 hours ago, 232showtime said:

did you try to use excel formula? like Vlookup and if condition, and data validation?

Thank you for the info  <3 it was working fine now its working on what i want, but do you have any idea how can i get the value or update the value without opening the source excel file in short i can get the value without opening the booksheet or the file?

Share this post


Link to post
Share on other sites

Do you mean: without "visibly" open the workbook?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
11 hours ago, water said:

Do you mean: without "visibly" open the workbook?

Yes just the pathway, because I close the workbook with vlookup, try to change the value of the cell of the source workbook and close it. And I assume that the value with the vlookup will be changed to but after i open it was not changed it only changed if the source workbook was opened again.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

You need to click enable content to update the values in vlookup, check the attached pictures.

Datasource and vlookup included for sample

Source.xlsx

VlookUp.xlsx

sample1.jpg

Edited by 232showtime
edit: and like water said you can check the help file for automating excel.

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

Thank you for guiding me on the right path :)

Share this post


Link to post
Share on other sites

^_^


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now