same workbook name in one folder

freezefiz

Board Regular
Joined
May 21, 2008
Messages
101
hey guyz..

Pls advise me on this.

Is it possible to have saved the same workbook name and that to have a prompt asking whether you want to replace or update the workbook??

eg. If update, it'll scan through the existed workbook & compare with the other workbook which you want to save, & add rows according or sum up the total for one of the cols.

Pls pls let me know if this can be done..
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
or rather another way to look at it,

how do i search through the "PRODUCTION" folder to identify the same name, and then do the rest..

pls advise.
Thanks
 
Upvote 0
hey jindon thanks for the reply..

This is the output..
18_Jun_2008.xls
ABCD
1PrepareDate:6/18/2008
2Day:Wednesday
3DeliverDate:
4ProductIDProductUomQty
5TDG-**002TunaCheesePizzaBarKG30
6RFG-**588ThaiChickenFriedRiceKG30
7RFG-**502ClubSandwichPKT6
8RFG-**501RoastMexicanChickenPKT30
9RFG-**501RoastMexicanChickenpcs24
10TDG-**002TunaCheesePizzaBarpcs30
11RFG-**501RoastMexicanChickenKG10
Sheet1


The reason why i didn't want to overwrite is because there may be new different products(colB) & qty(colD) on the other workbooks.

And so, it'll be great if i could compile all the data together & sum up the qty.
 
Upvote 0
When you compare the sheet (old with new), you need to find out it there are any change first, but how would you find it out ?

Can you tell us how you mannually "update" ?
 
Upvote 0
Currently i have :
Code:
qty = "=SUMPRODUCT(--(db!R2C1:R[" & nDb & "]C1=R1C2),--(db!R2C6:R[" & nDb & "]C6=RC1),--(db!R2C7:R[" & nDb & "]C7=RC2),--(db!R2C10:R[" & nDb & "]C10=RC3),db!R2C9:R[" & nDb & "]C9)"

which helps to retrieve all the values from yet, another worksheet.


And this is used to eliminate the duplicated orders.
Code:
Dim lngTMP As Long, iRows As Long
    On Error GoTo Fin
    Application.ScreenUpdating = False
    iRows = Cells(Cells.Rows.Count, 2).End(xlUp).Row
    For lngTMP = iRows To 6 Step -1
        If WorksheetFunction.CountIf(Columns(2), Cells(lngTMP, 2)) > 1 Then
            Rows(lngTMP).Delete
        End If
    Next lngTMP
Fin:
    Application.ScreenUpdating = True

The situation is that there are few sets of these workbooks used by many users.

And at the end of the day, all the data would have to be combined together & saved in the "PRODUCTION" folder.
 
Upvote 0
freezefiz: It would help if you can answer his questions.
like what Jindon said, what are you going to do to find the change?
how do you update?
 
Upvote 0
freezefiz: It would help if you can answer his questions.
like what Jindon said, what are you going to do to find the change?
how do you update?

Like he said, how could we know what you want to do from your code ?
 
Upvote 0
perhaps do a search based on colA & colB?

If it could compare both columns, then i suppose if its not found then, it'll just update both the new cols alongside with cold C & colD.

pls pls correct me if im wrong with that.
 
Upvote 0
jindon, i'll leave this thread to you...
maybe it's my english, i got really a hard time understanding what she's trying to mean.

No offense :)
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top