VBA Macro to Copy from Table & Create Matrix style view

Joey86

New Member
Joined
Jul 25, 2013
Messages
32
Hi All,

I currently have a spreadsheet with the following sheets which are tables, I also have a worksheet for every month and creating a monthly view of each day in their associated worksheet, I basically need a VBA macro to use the below information to construct a matrix such as below depending on the month listed, in each monthly worksheet I will also have a field which identifies the current year, this will also need to be used because the user will be allowed to choose the year to display from a drop-down list. In the matrix the days will need to be coloured depending on status. G = Green, B = Red, W = White (White = hasn't completed yet), also is it possible for the macro to enter the reason as a comment for a day marked as 'B'?

Hope I've explained it clearly, feel free to ask if I haven't, thanks in advance :)

- Server_Listing
ABCDEF
Server NameClient:Customer NameServer TypeLocationIP AddressComments
ServerABCustomer 1ArcServeQLDTest
ServerXYCustomer 2ArcServeNSWTest
Server02Customer 3ArcServeNSWTest
Server03Customer 3ArcServeNSWTest

<tbody>
</tbody>

- Exceptions
ABCDEFGHIJKLM
TitleCustomerDateClient ServerError CodeSequenceReferenceReasonCurrent StatusSLA ExemptDay_CalcMonth_CalcYear_Calc
Customer 3 - Server03Customer 38/08/2013Server03TestTestTestTest ReasonGoodTRUE8August2013
Customer 2 - ServerXYCustomer 29/08/2013ServerXYTestTestTestTest ReasonBadFALSE9August2013
Customer 1 - ServerABCustomer 116/08/2013ServerABTestTestTestTest ReasonBadTRUE16August2013
Customer 3 - Server02Customer 39/08/2013Server02TestTestTestTest ReasonBadTRUE9August2013

<tbody>
</tbody>

- Worksheet August (Matrix View) Cell B8 = 2013 [Button Run VBA]
ServerServer Type12345678910111213141516171819202122232425262728293031
Customer 1 (merged cells)ServerABArcServGGGGGGGGGGGGGGGBWWWWWWWWWWWWWWW
Customer 2 (merged cells)ServerXYArcServGGGGGGGGBWWWWWWWWWWWWWWWWWWWWWW
Customer 3 (merged cells)Server02ArcServGGGGGGGGBGGGGGGG
Customer 3 (merged cells)Server03ArcServ

<tbody>
</tbody>

Attached a pic for matrix:
1150984_10151741914421132_1463803186_n.jpg
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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