Extracting info from master sheet to multiple sheets in same workbook

Warrior1975

New Member
Joined
Nov 16, 2016
Messages
9
Hello. I am using Office 365 and I am trying to figure out how to extract information from my master sheet and have it populate in other sheets in the same workbook. I would like to do it automatically as the master sheet is updated and it has to be for a certain criteria.

My master sheet has the following fields:

Supplier Exam DateExam Posted DateExam Completed DateExam Deleted DateExam StatusExam Issue IdFirst NameMiddle NameLast NameSuffixDOBSexHeight InchesWeight LbsAddress 1Address 2CityStateZipHome PhoneWork PhoneCell PhoneEmailContact PersonContact Person PhonePrimary Care Physician NamePrimary Care Physician PhoneHas InsuranceMedicare NumberMedicaid PlanMedicaid NumberOther Insurance Plan 1Other Insurance Number 1Other Insurance Group Number 1Other Insurance Phone 1Other Insurance Rx Bin 1Other Insurance Pcn 1Other Insurance Plan 2Other Insurance Number 2Other Insurance Group Number 2Other Insurance Phone 2Other Insurance Rx Bin 2Other Insurance Pcn 2Notes For ClinicianClinician IdClinician NamePractice NameSupplier IdSupplier NameIntake IdIntake NameMarketer IdMarketer NameAgent NameTelemedVerificationShippingDMEBackRight ShoulderLeft ShoulderRight KneeLeft KneeRight AnkleLeft AnkleRight WristLeft Wrist

<colgroup><col><col><col><col span="25"><col><col><col span="2"><col><col><col><col span="2"><col><col><col><col span="2"><col><col><col><col span="23"></colgroup><tbody>
</tbody>

I would like to extract the information based upon the supplier and have the entire row copied for each patient with said supplier. I would like to have sheets for each supplier. I need this to automatically populate each time the master sheet is updated. I tried using the advanced filter, which works perfectly, however we would have to do that manually in order to keep the sheets updated. Any advice would be greatly appreciated.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
a thing many VBA coders do is macro record a manual process they want to automate. So macro record yourself doing the advanced filter. Stop the recording. Look at the code. You can now use
Worksheet_Change from the master sheet to automatically trigger the advanced filter macro every time someone enters data into the Master Sheet. TEST TEST TEST to make sure it is working as expected.

HELP:
You may need to enable Developer option to see the Macro Record feature. Do so by clicking FILE/OPTIONS/Custom Ribbons, check Developer.

Worksheet_change, right click the Master sheet tab and VIEW CODE. Change General to Worksheet and Declarations to Change. CALL your recorded macro.
 
Upvote 0
Ok, thank you. I am going to attempt this. I've never done anything like this, so I am sure I will have more questions, but I believe I understand what you are suggesting. Thank you again!!
 
Upvote 0
The Worksheet_Change macro will need a trigger in order to run automatically. You can add a column at the end of your data and call it something like "Updated". After updating any row, you can enter a letter such as "X" in that column to act as the trigger and automatically run the macro. If you have any questions, please feel free ask. :)
 
Upvote 0
Ok, I was able to record it. I viewed the code:



Sheets("1. Mindy- Inhouse Privates").Select
Range("A9:BP27").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
"A1:BP2"), CopyToRange:=Range("A9:BP9"), Unique:=False
Range("A9:BP27").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
"A1:BP2"), CopyToRange:=Range("A9:BP9"), Unique:=False
Range("AW2").Select
Selection.ClearContents
Range("A9:BP27").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
"A1:BP2"), CopyToRange:=Range("A9:BP9"), Unique:=False
Sheets("Master List").Range("A9:BP15").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("A1:BP2"), CopyToRange:=Range("A9:BP9"), Unique:= _
False
End Sub

So, now you want me to enter this into the Master sheet tab? Do I have to change any of the coding? As we enter additional information, obviously there will be additional rows. I want to run it for everything in that sheet, are there any other changes I need to make?
 
Upvote 0
The Worksheet_Change macro will need a trigger in order to run automatically. You can add a column at the end of your data and call it something like "Updated". After updating any row, you can enter a letter such as "X" in that column to act as the trigger and automatically run the macro. If you have any questions, please feel free ask. :)

Ok, I will do that. That's all I would need to add? Thank you!! On a side note, I don't see a thank you, was trying to click on it to give thanks.
 
Upvote 0
Worksheet_change, right click the Master sheet tab and VIEW CODE. Change General to Worksheet and Declarations to Change. CALL your recorded macro.

Ok, I clicked on view code. I don't see an option to change General to Worksheet and Declarations to Change. It opens the Virtual Basic and I can paste the code there, but that's all I see. It does list my workbook and all the sheets. Thank you guys, I can't believe how quick you all are.
 
Upvote 0
To thank someone, you can click on the word "Like" in the bottom right hand corner of the helper's post. You said that you want a sheet for each supplier. Are you creating the supplier sheets manually or did you want the macro to create them for you? What you want to do may take a little more than just recording a macro. It is always easier to help and test possible solutions if we could work with your actual file. Perhaps you could upload a copy of your file to a free site such as www.box.com. or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Include a detailed explanation of what you would like to do referring to specific cells and worksheets. If the workbook contains confidential information, you could replace it with generic data.
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,049
Latest member
THMarana

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