BigPaws
New Member
- Joined
- Jun 17, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hello All You VBA Experts,
Like so many others, I am relatively new to VBA. I have a code that will take Test Case data from my "Working", create new a worksheet from the Template, name it and populate it correctly. However, it will only add one Test Case with up to four Steps, I need to be able to add multiple Test Cases and multiple steps to each new spreadsheet. On the attached samples I have added color coding just to help demonstrate where the data on the Working sheet would populate on the new template. The Working Overview image is a zoomed out view of the data on the Working sheet. The Working Close-Up gives you a better look at the data and headers. Each row on the Working sheet is a Test Case, the columns after L are for the steps of the test case. All Test Cases with the same TabName (column A) and/or Plan information (columns B-D) will be on the same worksheet. Columns A through D will all be the same for all Test Cases that will go on the same worksheet. This example would have four new worksheets created with four test cases on each one and looking like the Completed Sample image when done. You'll notice on the Template the test cases are now in columns and the step information is now in the rows. A Plan/worksheet can gave 1 to over 100 test cases and 2 to over 20 steps. It is never a set amount. Any help would be greatly appreciated.
Like so many others, I am relatively new to VBA. I have a code that will take Test Case data from my "Working", create new a worksheet from the Template, name it and populate it correctly. However, it will only add one Test Case with up to four Steps, I need to be able to add multiple Test Cases and multiple steps to each new spreadsheet. On the attached samples I have added color coding just to help demonstrate where the data on the Working sheet would populate on the new template. The Working Overview image is a zoomed out view of the data on the Working sheet. The Working Close-Up gives you a better look at the data and headers. Each row on the Working sheet is a Test Case, the columns after L are for the steps of the test case. All Test Cases with the same TabName (column A) and/or Plan information (columns B-D) will be on the same worksheet. Columns A through D will all be the same for all Test Cases that will go on the same worksheet. This example would have four new worksheets created with four test cases on each one and looking like the Completed Sample image when done. You'll notice on the Template the test cases are now in columns and the step information is now in the rows. A Plan/worksheet can gave 1 to over 100 test cases and 2 to over 20 steps. It is never a set amount. Any help would be greatly appreciated.
VBA Template-Sample.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | |||||||||||
2 | TEST PLAN | 01-TEMPLATE | |||||||||
3 | Alias | ALIAS | |||||||||
4 | Description | 01-TEMPLATE Validation Testing | |||||||||
5 | |||||||||||
6 | TEST CASE | My Sample Testcase | |||||||||
7 | Alias | 000 | |||||||||
8 | Description | Description | |||||||||
9 | STEP | ||||||||||
10 | STEP 01 | Step | |||||||||
11 | System/Application | WPE CP | |||||||||
12 | Role (if applicable) | Pathologist | |||||||||
13 | Instructions | Instructions | |||||||||
14 | Expected Outcomes | Outcomes | |||||||||
15 | Data to Collect | Data | |||||||||
16 | Screen Capture? | X | |||||||||
17 | Attachment? | X | |||||||||
18 | Requirements | CP1.A.3|Receive Order Comms from ICE | |||||||||
19 | |||||||||||
20 | STEP 02 | ||||||||||
21 | System/Application | ||||||||||
22 | Role (if applicable) | ||||||||||
23 | Instructions | ||||||||||
24 | Expected Outcomes | ||||||||||
25 | Data to Collect | ||||||||||
26 | Screen Capture? | ||||||||||
27 | Attachment? | ||||||||||
28 | Requirements | ||||||||||
29 | |||||||||||
30 | STEP 03 | ||||||||||
31 | System/Application | ||||||||||
32 | Role (if applicable) | ||||||||||
33 | Instructions | ||||||||||
34 | Expected Outcomes | ||||||||||
35 | Data to Collect | ||||||||||
36 | Screen Capture? | ||||||||||
37 | Attachment? | ||||||||||
38 | Requirements | ||||||||||
39 | |||||||||||
40 | STEP 04 | ||||||||||
41 | System/Application | ||||||||||
42 | Role (if applicable) | ||||||||||
43 | Instructions | ||||||||||
44 | Expected Outcomes | ||||||||||
45 | Data to Collect | ||||||||||
46 | Screen Capture? | ||||||||||
47 | Attachment? | ||||||||||
48 | Requirements | ||||||||||
49 | |||||||||||
50 | STEP 05 | ||||||||||
51 | System/Application | ||||||||||
52 | Role (if applicable) | ||||||||||
53 | Instructions | ||||||||||
54 | Expected Outcomes | ||||||||||
55 | Data to Collect | ||||||||||
56 | Screen Capture? | ||||||||||
57 | Attachment? | ||||||||||
58 | Requirements | ||||||||||
59 | |||||||||||
60 | STEP 06 | ||||||||||
61 | System/Application | ||||||||||
62 | Role (if applicable) | ||||||||||
63 | Instructions | ||||||||||
64 | Expected Outcomes | ||||||||||
65 | Data to Collect | ||||||||||
66 | Screen Capture? | ||||||||||
67 | Attachment? | ||||||||||
68 | Requirements | ||||||||||
69 | |||||||||||
Template |