Hello everyone,
I am not sure how to do this or even if it is possible.
I have 2 sheets.
First sheet has in A1:B4 a table where in A1:A4 is listed "Name" "Company" "Date" and "ID#"
B1:b4 is where I fill in that information for the information i get.
Then. B7 onwards I have a list of Brokers that the above information is applied to.
In sheet 2, I have in column b, a big list of brokers. A macro on sheet 1 matches the brokers list from B7 onwards, to this list and pastes B1:b4 in a new row underneath each broker in sheet 2, starting from column C.
so looks like this for example (starting in column B, column A has a count forumula)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Broker[/TD]
[TD]Name[/TD]
[TD]Company[/TD]
[TD]Date[/TD]
[TD]ID#[/TD]
[TD]Entitles?[/TD]
[/TR]
[TR]
[TD]Broker 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Name1[/TD]
[TD]Company1[/TD]
[TD]6/26/16[/TD]
[TD]##[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Broker 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Name1[/TD]
[TD]Company1[/TD]
[TD]6/26/16[/TD]
[TD]##[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So these two brokers would have been listed in sheet 1, and then the info from B1:b4 would have pasted aross. Every time new entries are uploaded it is in a new row below the brokers.
Now what I want to know is if it possible during the "add request" macro in sheet 1, to check in sheet 2 if the entitles column has a "YES" in it. If it does have a yes, I want a new sheet created, based on the date being inputted in B3 sheet 1 that posts all the rows with the matching dates and YESes.
So for the above table, broker 2 does not have a yes, but broker 1 does. I want a new sheet called June 26, that has the same information listed. IF, a sheet already exists for the 26th, then just post the entries in the next open row, if the sheet doesnt exist, create a sheet, create the headers and then paste the rows. I want the data sorted by the dates essentially, whenever I hit the macro, just for the information that says "YES".
How do I proceed? I dont know how to name sheets based on cells and how to even move forward with this.
I can post teh existing macro's code too, if anyone needs it, but I feel it would be best to create a new sub and then call it in the other code.
I am not sure how to do this or even if it is possible.
I have 2 sheets.
First sheet has in A1:B4 a table where in A1:A4 is listed "Name" "Company" "Date" and "ID#"
B1:b4 is where I fill in that information for the information i get.
Then. B7 onwards I have a list of Brokers that the above information is applied to.
In sheet 2, I have in column b, a big list of brokers. A macro on sheet 1 matches the brokers list from B7 onwards, to this list and pastes B1:b4 in a new row underneath each broker in sheet 2, starting from column C.
so looks like this for example (starting in column B, column A has a count forumula)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Broker[/TD]
[TD]Name[/TD]
[TD]Company[/TD]
[TD]Date[/TD]
[TD]ID#[/TD]
[TD]Entitles?[/TD]
[/TR]
[TR]
[TD]Broker 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Name1[/TD]
[TD]Company1[/TD]
[TD]6/26/16[/TD]
[TD]##[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Broker 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Name1[/TD]
[TD]Company1[/TD]
[TD]6/26/16[/TD]
[TD]##[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So these two brokers would have been listed in sheet 1, and then the info from B1:b4 would have pasted aross. Every time new entries are uploaded it is in a new row below the brokers.
Now what I want to know is if it possible during the "add request" macro in sheet 1, to check in sheet 2 if the entitles column has a "YES" in it. If it does have a yes, I want a new sheet created, based on the date being inputted in B3 sheet 1 that posts all the rows with the matching dates and YESes.
So for the above table, broker 2 does not have a yes, but broker 1 does. I want a new sheet called June 26, that has the same information listed. IF, a sheet already exists for the 26th, then just post the entries in the next open row, if the sheet doesnt exist, create a sheet, create the headers and then paste the rows. I want the data sorted by the dates essentially, whenever I hit the macro, just for the information that says "YES".
How do I proceed? I dont know how to name sheets based on cells and how to even move forward with this.
I can post teh existing macro's code too, if anyone needs it, but I feel it would be best to create a new sub and then call it in the other code.