CaptnAbraham
New Member
- Joined
- Feb 10, 2022
- Messages
- 14
- Office Version
- 2019
- Platform
- Windows
Greetings everyone!
I'm relatively new to this world and I've tried to solve my problem with macro recordings, tinkering with those and hitting up google but I did not yet get the hang of it. While being able to create single, individual steps when lucky, interconnecting several and of those never worked...
Situation:
I have a file with 12 worksheets (General, DataEntry1, Task1, Task2, Task3, Task4, Task5, Task6, Task7, Task8, Task9, DataEntry2) and I would like to be able to execute a copy/paste code in eleven of them (the exception being the first, "General" sheet) at the same time.
In each of the eleven worksheets there is a set range filled with information, it is the same in each of them, A40:G68.
1) I wish to copy this range an "x" amount of times next to eachother (A40:G68 -> H40:N68 -> O40:U68 and so forth), where "x" is a set number in cell B1 in sheet "General". (Or is it easier to grab the columns per se and not bother with a specific range?)
2) Once done, copy rows 40:68 an "y" amount of times beneath one another, where "y" is a set number in cell B2 in sheet "General".
Hope my crude description makes some sense to the vba initiated. I'm sure there are more elegant ways to put it and therefore to code it as well..
I would appreciate every bit of help I can get. Thanks!
I'm relatively new to this world and I've tried to solve my problem with macro recordings, tinkering with those and hitting up google but I did not yet get the hang of it. While being able to create single, individual steps when lucky, interconnecting several and of those never worked...
Situation:
I have a file with 12 worksheets (General, DataEntry1, Task1, Task2, Task3, Task4, Task5, Task6, Task7, Task8, Task9, DataEntry2) and I would like to be able to execute a copy/paste code in eleven of them (the exception being the first, "General" sheet) at the same time.
In each of the eleven worksheets there is a set range filled with information, it is the same in each of them, A40:G68.
1) I wish to copy this range an "x" amount of times next to eachother (A40:G68 -> H40:N68 -> O40:U68 and so forth), where "x" is a set number in cell B1 in sheet "General". (Or is it easier to grab the columns per se and not bother with a specific range?)
2) Once done, copy rows 40:68 an "y" amount of times beneath one another, where "y" is a set number in cell B2 in sheet "General".
Hope my crude description makes some sense to the vba initiated. I'm sure there are more elegant ways to put it and therefore to code it as well..
I would appreciate every bit of help I can get. Thanks!