- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHi,
sorry if this is a long story but hopefully it has ane easy answer.
In our office the sales team use excel invoices, the template they open gives them a unique number and when they save the invoice a copy of the invoice is saved and the information is also stored in a lookup table which is an excel spreadsheet in subdirectory called invdata.
I believe that all this system was created using the excel wizards.
The problem I originally had was that one of the staff saved a blank invoice over the top of the invdata.
In order to find my way around this I wrote a script that created a new worksheet put in the relevant headings opened up each invoice file in turn in the directory and placed the relevant values in the new sheet using the following sort of command
DBWorksheet.Range("A" & lngRow) = InvWorksheet.Range("L17")
This seemed to work a treat at populating the sheet, the problem I then had was that the template then throws up an error saying that the new excel file is the wrong structure even though all the columns seem to be identical.
To get around this I then took a copy of the despatch note db which is identical, this placed in the invoice db directory allowed them to add new records by saving their invoices. So I thought excellent I'll copy and paste all the information from the sheet I created with my script.
This however still has a problem as the excel template seems to have some sore of row counter somewhere so that if new records are added now they overwrite the records I pasted in.
I cannot look at the VB macros in excel to see what the template is doing as these seem to be password protected, even though the person here who set up the system insists none were set, so assume this is because the macros were wizard generated. - any and all feedback on this are welcome
Kieron
This question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership