Create script to copy paste a row based on frquency formula data

mwender

New Member
Joined
Jun 13, 2018
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm new here and I'm must confess I'm ZERO in VBA. But I like the challenge to learn for some more.
I need to create a table (table 1) from another table (table 2 in different sheet) in which a specific row (row1) from table 1 will be copied and pasted to table 2 a number of times as appearing in specific cell in row 1 from table 1.

To be more specific:

Table 1 is a tasks table in which each task get a recurrence (weekly, monthly etc)- in specific cell I have calculated the frequency based on start and end date.
I'd like the script to automatically copy each row from table 1 (see example below) and paste it to table 2 as much as appears in the frequency cell (in the example below=9 times), and that the due date will update per frequency type (here weekly so it 'll add 7 days each row)

TASK ID TASK ASSIGNED TO START DATE END DATE DUE DATE FREQUENCY TYPE Frequency count

1 Laundry David 6/11/2018 8/11/2018 6/18/2018 WEEKLY 9


Hope it's not that complicated...

thanks much in advance!

Michele
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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