Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Add-Ins for Microsoft Office
Automating Excel Add-In JE Import with VB
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
491
Members:
0
Total:
491
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
User Experience
Lawson Add-Ins for Microsoft Office
Automating Excel Add-In JE Import with VB
Please
login
to post a reply.
11 Replies
0
Subscribed to this topic
1 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
marknorris
New Member
Posts: 2
9/14/2007 4:15 PM
Our company is trying to automate journal entry and AP uploads to Lawson using the add-in wizard. We would like to use macros and visual basic but have not found any documentation on how to call the Lawson add-in object. Can someone point us in the right direction?
John Henley
Posts: 3353
9/14/2007 5:05 PM
Hi Mark,
The short answer is that you can't control the Excel Addins via VBA. The only thing you can do is invoke/start the wizard.
Attachments
191454622671.gif
John Henley
Posts: 3353
9/14/2007 5:10 PM
A couple of anecdotes for you:
- The Addins were originally created as a marketing tool to slicken up the Lawson demo. After a few prospects turned into customers, they complained to Lawson, "hey, where's that Excel tool we saw in the demo???" So, the irony is that apparently Lawson really didn't plan this as a product...
- After the Addins were released as a product, I talked to the developer, and asked him your exact question, and asked him to imagine the value they could deliver if they could VBA-enable the addins. Essentially, you could write your interfaces/conversion in VB, and use the addins to pump the data in/out of Lawson. His response:"Gee, we didn't even think of that...that's a great idea!"
marknorris
New Member
Posts: 2
9/14/2007 5:13 PM
So where is this developer now? Still with Lawson? We have cash, does he work on the side?
Deron
Advanced Member
Posts: 25
10/3/2007 5:38 PM
We had a need to load journals via add-ins. One of our consultants provided a template which used VBA to mimic the upload function. It wasn't working perfectly, so I tweaked it a little bit and we are able to load both the 40.2 and the 40.1 records when doing jes. It's limited to 1000 records, but that's usually more than enough for our purposes.
awolff01
Basic Member
Posts: 8
10/4/2007 1:38 PM
Mark,
You can create very sophisiticated upload macros to Lawson using VBA/Excel and Lawson's Addin API.
I recently developed a GL40 upload macro that even allows the user to create a journal number if one is not provided.
I have also created upload spreadsheets for Inventory Control, Purchase Order, Billing. Etc.
If you need more info contact me offline aleksei_wolff@yahoo.com
Thanks.
John Henley
Posts: 3353
10/4/2007 1:57 PM
Alex, are you saying you were able to control the Addins via VBA??? The only control/object method I see in VBA is to start the wizard...
John Crudele
Veteran Member
Posts: 50
10/4/2007 5:03 PM
You are not using the add-ins, VB mimics the add-ins. If you attended the add-ins class at CUE, the instructor gave everybody this link. Look at the self contained worksheets, they contain the VB programming. If you know a little VB it is very easy to modify the samples or create new ones.
http://solutions.lawson.com/lu/addins/main.htm
Regards
JC
John Henley
Posts: 3353
10/4/2007 5:23 PM
Oh, I thought you were talking about something new and improved. Those have been around for a long time...but have been updated from writing to database tables (e.g., GLTRANSREL) to calling AGS.
The original question in this thread was how to automate the JE process using the Addins, the answer to which is "you can't".
But, as John and Alex point out, you can use Excel VBA to upload data via AGS ...
Jonathan Campbell
New Member
Posts: 1
11/9/2008 9:44 PM
Whenever I attempt using the self-contained JE upload file, I get an error saying "
" in the GL40.2 message. Did anyone else have this problem? If so, how did you fix it?
jeremy.zerr
Advanced Member
Posts: 23
11/10/2008 8:59 PM
I haven't been able to control the add-ins via VB, but just like the Query Wizard, the Upload Wizard generates a web query, an AGS call string for an Upload. You just click on the magnifying glass after you run the Upload and it gives you the query.
You'll be able to figure out what the URL parameters are for, then you can use some VB or whatever to loop through a spreadsheet and call that AGS URL with your parameters for each line. It essentially is doing what the Upload Wizard is doing.
I just think of the Office Add-ins as URL generators that save me a lot of time, then I use that URL in other programming environments to make it part of a more automated solution.
Jeremy Zerr
Lawson Reporting
joel_f
New Member
Posts: 1
12/5/2008 3:18 PM
Jeremy~
I'd like to complete a query using the URL generated by the Query Wizard in a vba environment. Have you done something like this? When I attempt to connect though, it gives me an authetication error. Here's the code I'm working on:
public sub GetLawData(sUrl as String)
Dim objHttp As Object
Set objHttp = CreateObject("MSXML2.ServerXMLHTTP")
Call objHttp.Open("GET", sUrl, False)
Call objHttp.Send("")
Call MsgBox(objHttp.ResponseText)
Set objHttp = Nothing
End Sub
Please
login
to post a reply.