I have a w/book named as Sales Report xlsm file > file path > C:\Users\Raju\Sales Report.xlsm
I have to update this w/book data with 2 csv files which I down load > file paths are >>>
C:\Users\Raju\Dropbox\PC\Desktop\Mumbai.csv > > variable data exisis *
C:\Users\Raju\Dropbox\PC\Desktop\New Delhi.csv >> variable data exists **
I need a macro to update Sales Report using above source csv files.
Task: Check Mumbai csv file data exists or not in Sales Report w/book > If Mumbai csv sheet “A2” date exists in Sales Report sheet entire column B > macro gives msg “Data Already Exists” > Exit macro after accepting msg result > If Mumbai csv sheet “Ä2” date not found in Sales Report column B > Copy variable data of Mumbai csv sheet (“A2: E”) and paste them in Sales Report last row (B :F) > Copy variable data of New Delhi csv sheet(“Ä2:E”) and paste them in Sales Report last row(H:L) > Msg “sheet Updated”. > End Sub.
If I rerun this macro > macro should give msg “Data Already Exists”
Macro has to run from Sales Report w/book
Csv files * and ** in both files variable data exists some times one row and some times more than 2 rows.
I have to update this w/book data with 2 csv files which I down load > file paths are >>>
C:\Users\Raju\Dropbox\PC\Desktop\Mumbai.csv > > variable data exisis *
C:\Users\Raju\Dropbox\PC\Desktop\New Delhi.csv >> variable data exists **
I need a macro to update Sales Report using above source csv files.
Task: Check Mumbai csv file data exists or not in Sales Report w/book > If Mumbai csv sheet “A2” date exists in Sales Report sheet entire column B > macro gives msg “Data Already Exists” > Exit macro after accepting msg result > If Mumbai csv sheet “Ä2” date not found in Sales Report column B > Copy variable data of Mumbai csv sheet (“A2: E”) and paste them in Sales Report last row (B :F) > Copy variable data of New Delhi csv sheet(“Ä2:E”) and paste them in Sales Report last row(H:L) > Msg “sheet Updated”. > End Sub.
If I rerun this macro > macro should give msg “Data Already Exists”
Macro has to run from Sales Report w/book
Csv files * and ** in both files variable data exists some times one row and some times more than 2 rows.