#46
|
|||
|
|||
In a quick answer "Yes You Can". |
#47
|
|||
|
|||
|
#48
|
|||
|
|||
Ok, if help need LMK
|
#49
|
|||
|
|||
Is it basically adding to the existing code? Sorry still an amateur at this.
I want the userform to have ComboBox1, choose a year and it runs your macro as it does now. Ive added the years (2015, 2016, 2017, 2018) in column F of Sheet1. |
#50
|
|||
|
|||
HI,
It would be easier to see what can you send the workbook. I think sent you a PM sometime ago with my email address. |
#51
|
|||
|
|||
Quote:
I've attached the workbooks. Thank you sir! |
#52
|
|||
|
|||
Thanks will look it over
|
#53
|
|||
|
|||
HI,
When you select the year you just want he selected year to populate the vendor file? |
#54
|
|||
|
|||
I would like the person to select the year and it populate just for the year chosen. Basically run like you have it, but just now for the specific year chosen in the userform.
|
#55
|
|||
|
|||
Hi,
I modified the code. |
#56
|
|||
|
|||
Thank you.
When I run the code, it filters the first vendor for the correct year, but does not populate the Vendor Template1 sheet. |
#57
|
|||
|
|||
Hi,
The reason the data is not going to the Vendor file sheet is because the code you modified from "Sheet1, sheet2" to "Declaration , Product List". The template has sheet1 and sheet2. If you change the sheet names to "Declaration , Product List". the code should work. |
#58
|
|||
|
|||
Quote:
Ill edit that and test again. |
#59
|
|||
|
|||
Now its telling me the following error.
Complile Error: Variable not defined Its highlighting the following code. For Each Item In NoDupes ***Update*** The code works fine when running by itself. I receive an error only by running the macro via the Userform. Hope that helps. |
#60
|
|||
|
|||
Hi,
I was able to correct the error. Now when it runs, it creates a new spreadsheet for the vendor but does not populate on the sheets. Basically creating blank files. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a table that automatically updates based on entries of a heading in the document | cahphoenix | Word | 3 | 10-29-2014 01:11 PM |
I need to add multiple values based on multiple criteria in a cell not sure what to do | AUHAMM | Excel | 3 | 10-27-2014 09:11 PM |
Need help creating a Word document that is populated based on certain selected values | alidaanish | Word | 1 | 01-10-2014 10:44 PM |
Creating Report based on 'Task Summary' and 'Sub Tasks' | alijahed | Project | 1 | 02-01-2013 04:20 AM |
Creating formula based on if data is correct in cell | MattMurdock | Excel | 1 | 08-06-2012 03:11 AM |