Run vba on dataset using criteria and input data from another dataset?

CaraM

New Member
Joined
Apr 8, 2018
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I hope this is explained clearly.

I have one workbook called Tasks with many columns of data, the relevant ones for this question being TaskID, Recurrence, StartDate and Complete and DateLastCompleted.

Right now, I update this workbook (to complete tasks) one record at a time by double-clicking the Complete column for the row, which runs a VBA subprocedure called Calc_Completed that looks at StartDate and Recurrence and asks me if I want to repeat from the startdate, or a date that I specify (i.e., did I finish it when planned, or on another date?).

I will have another unnamed workbook (that is exported from my task management app) that contains TaskID and DateCompleted.

I know that I can filter my Tasks workbook to show only those records that exist in my unnamed workbook with a completion date.

I also know that I can run VBA that updates each record in the filtered Tasks ... but is there a way to run VBA that RUNS my Calc_Completed subprocedure on each record and answers it not only with "use the date I specify," but also inputs that DateCompleted from the unnamed workbook as that "date that I specify?"

Is that clear as mud?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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