Discussion Locked

a macro that involves an if formula

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a combo box from the forms toolbox and I've listed to different inventories names that I have stored in another workbook. I receive a copy of my invoices in an excel doc, my question is how do I send that information with a macro depending onthe name that was picked on the combobox, that involves an if and I have no idea how to doit, and if possible how do i give the instruction to paste that information at the end of the inventorie. Can you help. THANKS IN ADVANCE FOR ANY INFO.

4 replies

by dklippert

One quick suggestion is Vlookup to gather the data connected to the combo box selection.
The rest of the answer depends on what you mean by "send". If you want to mail the workbook, for instance, the VB term would be SendMail.

by agurrutia

by send I meant paste that info in another workbook. Let me try to better explain myself, I have two workbooks, one has two spreadsheets (inventorie 1 and inventorie 2), the other workbook is like an invoice, I put there the articles I bought and their sizes, and what I need is to send (paste) that info to either one of the inventories but chosen from the combo box, and after the info is pasted, I need the invoice cleared for the next entry of goods, and so on. Some times the goods will go to inv 1 and some other to inv 2.
I hope i explained better this time and thanks for your quick response.

This discussion is closed to new replies.