Hi everyone,
I use a macro to update certain worksheets in a workbook across 2 computers.. The problem is that i have 4 different macros for each sheet, I know i can put them all into 1 Macro to achieve this, except upon update because both workbooks are not always containing the same data it can destroy new data from one book to the other, My question is.... Is it possible to write all the VBA into one macro and have this macro ask the user if they wish to update each sheet as it gets to it...
IE: Click update Button :- Then a message box with "Do you wish to Update - Members"... then 2 buttons 1 for Yes and the other for No...
then the vba continues to the next Worksheet.. then same message box again and so on...
Hope this is easy enough to understand..code im using is below..
Thanks for any help in adavance
I use a macro to update certain worksheets in a workbook across 2 computers.. The problem is that i have 4 different macros for each sheet, I know i can put them all into 1 Macro to achieve this, except upon update because both workbooks are not always containing the same data it can destroy new data from one book to the other, My question is.... Is it possible to write all the VBA into one macro and have this macro ask the user if they wish to update each sheet as it gets to it...
IE: Click update Button :- Then a message box with "Do you wish to Update - Members"... then 2 buttons 1 for Yes and the other for No...
then the vba continues to the next Worksheet.. then same message box again and so on...
Hope this is easy enough to understand..code im using is below..
Code:
Sub Copy_SecMembers()
Workbooks("EBCPSC_Ver_3.2.2.xlsm").Worksheets("Members").Range("A2:F2300").Copy _
Workbooks("GBCPSC_Ver_3.2.2.xlsm").Worksheets("Members").Range("A2")
End Sub
Code:
Sub Copy_SecClubLedger()
Workbooks("EBCPSC_Ver_3.2.2.xlsm").Worksheets("Club Ledger").Range("A2:H105001").Copy _
Workbooks("GBCPSC_Ver_3.2.2.xlsm").Worksheets("Club Ledger").Range("A2")
End Sub
Code:
Sub Copy_SecMinutes()
Workbooks("EBCPSC_Ver_3.2.2.xlsm").Worksheets("Minutes").Range("A2:K106").Copy _
Workbooks("GBCPSC_Ver_3.2.2.xlsm").Worksheets("Minutes").Range("A2")
End Sub
Thanks for any help in adavance