Hello, I started learning VBA for the first time a week ago so please forgive my lack of knowledge. I am having a lot of fun with the added functionality.
This is the first piece of code I am trying to write from scratch as well.
My workbook has customers who's inputs will each fill out different forms but some of them will share the same forms (templates). My goal with this code is to have a workbook which prints specific sheets based on numbers (or references to sheets) in the cells next to the customer's name. The customer is picked by a dropdown menu (Named that range "Customer"). This data will be in a data sheet hidden later on. The reason for this, is that I want it to be easy for someone else to add a sheet later on and have it print for the specific customer simply by adding the number to the list next to their name.
This is what I came up with and it seems to work! But, being so new, I don't know if I am doing this as efficiently as I could be. Moreover, I am having trouble understanding how not to use the .select and .activate methods. I know I am supposed to work with Objects directly, but in some cases where I used .select I can't think of how not to use it.
It took me a while to figure out how to get all prints to be one job and for the selection to NOT include the data sheet as well. Lastly, I am having trouble understanding how to use arrays. Should I be using an array for this instead? I just want make sure I am creating something robust and efficient. I am happy to be a part of this forum and I definitely appreciate everyone's time and help.
I tried uploading the workbook, but it continually tries to upload without actually doing it. (Maybe my work network or something? It's only a 37KB .xlsm)
Bookmarks