V
Vince Bowman
So I am fairly new to Visual Basic, but am fluent in C++ and Perl
(just so you know some of my background to help me haha)
I am am currently trying to write a VB script in excel to fill out
approx.700 cover sheets that have been provided for me (i.e. I can't
change the location of the cells, or add any more).
As of right now, I have about 20 clients that need this done for them.
Each client has a csv file with the appropriate data. However, each
files contains multiple permits, and each permit needs a coversheet
( as in for each client file, anywhere from 5 to 100 coversheets must
be made).
As previously stated, I have a previously laid out coversheet (that
should remain the same format for each permit, just different
information) in which all the data must be in specific cells.
Not sure how to get start on this(VB code wise).
I could divide each client file by permit number, and have a csv file
for each coversheet (permit number). I could create a master template
out of the provided coversheet and point each individual cell to the
csv file, but I would have to do that for some 700 coversheets. Since
this is only a one time thing, I don't see much benefit in doing it
the way (as in once the cover sheets are created, there should be only
minimal changes that need to be made from time to time, and a script
would take more time than what its worth.)
I could also write a script in VB in which a new file is made from the
template (provided coversheet) for each csv file. Can I do this with a
VB script in Excel? Not sure how you would get started on this.
Would it be more beneficial to write some type of overarching program
in C++ (or more likely Perl) to pass each file into the template (in
which I write some simple script to point the data to the cells I
want).
It seems to me like the third would be the most time efficient, but
not sure how to pass a file to a VB script within an excel file.
I know I made this probably more wordy than I should, but I've helped
people on forums before, and know how inconveniencing it can be to
have unclear questions. My question may still be unclear, but
hopefully not. haha.
Thanks
(just so you know some of my background to help me haha)
I am am currently trying to write a VB script in excel to fill out
approx.700 cover sheets that have been provided for me (i.e. I can't
change the location of the cells, or add any more).
As of right now, I have about 20 clients that need this done for them.
Each client has a csv file with the appropriate data. However, each
files contains multiple permits, and each permit needs a coversheet
( as in for each client file, anywhere from 5 to 100 coversheets must
be made).
As previously stated, I have a previously laid out coversheet (that
should remain the same format for each permit, just different
information) in which all the data must be in specific cells.
Not sure how to get start on this(VB code wise).
I could divide each client file by permit number, and have a csv file
for each coversheet (permit number). I could create a master template
out of the provided coversheet and point each individual cell to the
csv file, but I would have to do that for some 700 coversheets. Since
this is only a one time thing, I don't see much benefit in doing it
the way (as in once the cover sheets are created, there should be only
minimal changes that need to be made from time to time, and a script
would take more time than what its worth.)
I could also write a script in VB in which a new file is made from the
template (provided coversheet) for each csv file. Can I do this with a
VB script in Excel? Not sure how you would get started on this.
Would it be more beneficial to write some type of overarching program
in C++ (or more likely Perl) to pass each file into the template (in
which I write some simple script to point the data to the cells I
want).
It seems to me like the third would be the most time efficient, but
not sure how to pass a file to a VB script within an excel file.
I know I made this probably more wordy than I should, but I've helped
people on forums before, and know how inconveniencing it can be to
have unclear questions. My question may still be unclear, but
hopefully not. haha.
Thanks