[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Excel VBA combine two working workbooks

Posted on 2016-09-09
8
Medium Priority
?
96 Views
Last Modified: 2016-09-11
HI Expert,
I have 2 workbooks
1). The first one  is a drop-down - vlookup and update source workbook that works great.
-  basically this one has a data table on one sheet and a vlookup sheet that shows the info from source through a drop down choice. It also allows updating the source by hitting the update button (VBA)

2) On the second one (expiry email) it has a dashboard where you push a button and it creates emails to send to the trainers that have expiring employees for license. (works great). There is additional code in this one where you add a name to the data table and it adds five names to the Expiry Date table (ExpDate) this also works great. I then manually add the five categories and copy down the vlookups and it works. This ExpDate sheet is needed for the email program to work.

Both WBs uses the same data table (Master Log) as the master information.

I want to combine these into one work book, but every time I try to do it I get errors in the VB. Something to do with the drop-down.

It would be awesome if I could get this working.
Thanks so much
Stripped-expiry-email.xlsm
Stripped-VlookUP-and-Update-only.xlsm
0
Comment
Question by:chris pike
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41791481
Does it matter which workbook you end up with?
0
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41791508
Is this what you need?

I have deleted the unused rows in the Master Log Table - you don't need unused rows. Just add them as required.

The Data validation list is now linked to that table and will be dynamic as you add or remove names.
Stripped-expiry-email.xlsm
0
 

Author Comment

by:chris pike
ID: 41791737
I think I am missing a macro (it asks to update prompt right away when opening)
01-error.JPGor i get this one
02.JPGHmmmm
Probably something I am doing, Everything else seems to work Roy
Thanks Chris
......
It would be super super awesome in the ExpDate table if the Vlookup and the categories would auto copy and paste when the new name comes in from the Master Log sheet......

If possible
Thanks
Chris
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Expert Comment

by:Roy Cox
ID: 41792265
I imported all the macros but I will check.

The VLOOKUP issue can probably be solved by using an Excel Table. I'll look at that as well.

It may be Sunday before I get time though
0
 
LVL 22

Accepted Solution

by:
Roy Cox earned 2000 total points
ID: 41792292
I don't get that error message but I have removed a link to the old file. The Update macro runs with no errors. I have debugged the whole workbook with no errors reported. Check this updated version

Can you tell me where the VLOOKUP formulas are. I'm not sure what should be updating
Stripped-expiry-email.xlsm
0
 

Author Comment

by:chris pike
ID: 41793421
Awesome Roy, Works Great.
Yah it was looking for a file on your computer.

Thanks so much.
0
 

Author Closing Comment

by:chris pike
ID: 41793422
Works awesome.
Thanks so much.
0
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41793732
Pleased to help
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question