Click here to Skip to main content
15,920,630 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have Sheet Jounal Voucher Whan i Enter Journal Entery Data Automaticllay Go to Desired Ledger It is posible
Posted

1 solution

Yes.

If I am understanding you correctly, you want to be able to enter data on a generic form that will then post only to a specific ledger (held on a separate worksheet I am guessing), and then reset to accept the next item?

Easy enough.

As part of the data entry form have a dropdown list selecting the Ledger, and post to that ledger.

Use a Case Statement to give a value for the Ledger.


VB
Sub TheSelectCase2()
    Select Case ComboBox1.Value
          Case "Purchase Ledger"
              LedgerSelection.Value = "PL"
          Case "Cost Ledger"
              LedgerSelection.Value = "CL"
          Case "Sub Contractor Ledger"
              LedgerSelection.Value = "SCL"
    End Select


Then using that value, select the ledger.

Sheets(LedgerSelection).Select



And then Select the are within the sheet for the post.
 
Share this answer
 
Comments
ThomasCarmen 24-May-11 20:43pm    
Great answer, did you know this was that easy?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900