Kenja824
Automotive
- Nov 5, 2014
- 950
With your help, I created code to run in a document that would set everything up automatically. Put it all in a table, hide rows format other rows add formulas in columns etc...
Being sick of the privacy issues, I took a document I would receive and changed a ton of info in it. This has in turned caused some of the columns to not fill in with the formulas but you can ignore that, as they work in the real documents.
Attached is the excel file. I do not know how to attach more than one file, so I will reply twice to add the others.
The QWD-SETUP3.bas file works fairly well. You may see that it could be done much cleaner but at least it works.
) This will format cells, hide columns and add formulas to the table it creates as well.
The QWD-New-Form.bas file is the one I am trying to figure out.
Where I am having a problem is when I run the New Form code, I dont know how to make the table grow to accept all of the rows that are in the original sheet. (Keep in mind that every time I get a new file, the amount of spots listed (rows) will be different. Some are many times longer than this one. ....... However, even if the table grows to the same length, another thing I would want to do is make it so that when we print, the print range will be only what is showing after we filter it. Not sure if that part is possible or not.
Once I get this NEW FORM vba figured out to work right, I will just be adding it to the original code so one file does it all. I may have a question on that when the time comes. Hopefully not. lol
I will attach the other files....
Being sick of the privacy issues, I took a document I would receive and changed a ton of info in it. This has in turned caused some of the columns to not fill in with the formulas but you can ignore that, as they work in the real documents.
Attached is the excel file. I do not know how to attach more than one file, so I will reply twice to add the others.
The QWD-SETUP3.bas file works fairly well. You may see that it could be done much cleaner but at least it works.
The QWD-New-Form.bas file is the one I am trying to figure out.
Where I am having a problem is when I run the New Form code, I dont know how to make the table grow to accept all of the rows that are in the original sheet. (Keep in mind that every time I get a new file, the amount of spots listed (rows) will be different. Some are many times longer than this one. ....... However, even if the table grows to the same length, another thing I would want to do is make it so that when we print, the print range will be only what is showing after we filter it. Not sure if that part is possible or not.
Once I get this NEW FORM vba figured out to work right, I will just be adding it to the original code so one file does it all. I may have a question on that when the time comes. Hopefully not. lol
I will attach the other files....