Home

How to send cell value as SOAP request in Excel?

%3CLINGO-SUB%20id%3D%22lingo-sub-756639%22%20slang%3D%22en-US%22%3EHow%20to%20send%20cell%20value%20as%20SOAP%20request%20in%20Excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-756639%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi%20folks%2C%20hope%20someone%20can%20guide%20me%20please.%20I%20have%20a%20spreadsheet%20with%20900%2B%20rows%20of%20data%20which%20is%20concatenated%20to%20a%20point%20where%20I%20have%20a%20fully-formed%20SOAP%20request%20in%20column%20W%20for%20each%20row.%20Is%20there%20a%20way%20that%20I%20can%20either%20send%20all%20of%20these%20SOAP%20requests%20in%20one%20go%20(which%20would%20be%20great%20for%20the%20initial%20upload)%2C%20or%20create%20a%20button%20for%20each%20row%20to%20send%20them%20individually%20(which%20might%20be%20useful%20if%20the%20data%20gets%20modified%20and%20the%20individual%20row%20needs%20to%20be%20sent%20again)%3F%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EFor%20extra%20good%20data%2C%20I'd%20also%20like%20it%20to%20capture%20the%20SOAP%20response%20in%20column%20X%20so%20that%20I%20have%20a%20record%20of%20success%2Ffailure%20of%20each%20SOAP%20request%2C%20but%20it's%20not%20a%20showstopper%20if%20that%20doesn't%20happen.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI've%20seen%20posts%20that%20hint%20at%20the%20kind%20of%20thing%20I%20need%20but%20as%20my%20VB%20knowledge%20is%20next%20to%20zero%2C%20I%20can't%20translate%20them%20into%20what%20I%20need%2C%20which%20is%20essentially%20%22for%20each%20row%2C%20take%20cell%20W%2C%20send%20it%20as%20a%20SOAP%20request%2C%20place%20response%20in%20cell%20X%22.%20Thank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-756639%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-757881%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20send%20cell%20value%20as%20SOAP%20request%20in%20Excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-757881%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376994%22%20target%3D%22_blank%22%3E%40TheChad%3C%2FA%3E%26nbsp%3BCan%20you%20explain%20what%20you%20are%20trying%20to%20achieve%3F%26nbsp%3B%20A%20quick%20Google%20search%20for%20%22send%20SOAP%20request%20with%20Excel%20VBA%22%20gives%20a%20few%20results%2C%20but%20the%20code%20is%20always%20complex.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762643%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20send%20cell%20value%20as%20SOAP%20request%20in%20Excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762643%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F7724%22%20target%3D%22_blank%22%3E%40Ingeborg%20Hawighorst%3C%2FA%3E%26nbsp%3BHi%2C%20thank%20you%20for%20your%20reply!%20My%20apologies%20if%20my%20original%20request%20wasn't%20very%20clear.%20What%20I%20have%20is%20a%20spreadsheet%20where%20each%20row%20has%20information%20about%20an%20object%2C%20and%20I%20need%20to%20send%20that%20data%20as%20a%20SOAP%20request%20through%20an%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEach%20row%20is%20concatenated%20so%20that%20the%20complete%20SOAP%20request%20is%20in%20Column%20W.%20All%20I%20need%20to%20do%20is%20to%20have%20a%20VBA%20solution%20for%20sending%20that%20SOAP%20request%2C%20and%20if%20possible%20(but%20not%20essential)%2C%20recording%20the%20SOAP%20response%20in%20Column%20X.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIdeally%20I%20would%20like%20to%20send%20all%20the%20SOAP%20requests%20in%20the%20spreadsheet%20in%20one%20VBA%20script%2C%20but%20I%20will%20also%20settle%20for%20having%20a%20way%20to%20send%20each%20SOAP%20request%20individually%20if%20that's%20the%20way%20it%20has%20to%20be%20done.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-763600%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20send%20cell%20value%20as%20SOAP%20request%20in%20Excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-763600%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376994%22%20target%3D%22_blank%22%3E%40TheChad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDo%20you%20need%20help%20with%20sending%20the%20SOAP%20request%20or%20with%20looping%20through%20the%20values%20in%20the%20sheet%3F%20If%20you%20have%20almost%20no%20knowledge%20of%20VBA%2C%20then%20that%20is%20not%20the%20easiest%20project%20to%20begin%20with.%20Have%20you%20had%20a%20look%20at%20the%20code%20that%20you%20can%20find%20with%20the%20search%20I%20mentioned%20above%3F%20It%20definitely%20won't%20be%20any%20easier%20than%20these%20code%20examples.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-764715%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20send%20cell%20value%20as%20SOAP%20request%20in%20Excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-764715%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F7724%22%20target%3D%22_blank%22%3E%40Ingeborg%20Hawighorst%3C%2FA%3E%26nbsp%3BI%20need%20help%20with%20both%2C%20to%20be%20honest.%20I%20have%20looked%20at%20the%20code%20you%20suggested%2C%20and%20I'm%20still%20confused%20-%20you're%20right%20that%20this%20probably%20isn't%20the%20easiest%20place%20to%20start%20with%20VBA!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20you%20be%20able%20to%20advise%20on%20a%20'relatively%20simple'%20script%20that%20I%20could%20use%20to%20send%20an%20individual%20SOAP%20request%20please%3F%20It%20only%20needs%20to%20take%20the%20value%20of%20a%20cell%20in%20Column%20W%2C%20which%20is%20the%20fully-formed%20SOAP%20request%2C%20and%20just%20send%20that.%20Ideally%20it%20would%20be%20great%20if%20I%20can%20capture%20the%20response%20too%2C%20but%20I'm%20ok%20with%20not%20doing%20that%20if%20it's%20going%20to%20prove%20overly-complicated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E
TheChad
New Contributor

Hi folks, hope someone can guide me please. I have a spreadsheet with 900+ rows of data which is concatenated to a point where I have a fully-formed SOAP request in column W for each row. Is there a way that I can either send all of these SOAP requests in one go (which would be great for the initial upload), or create a button for each row to send them individually (which might be useful if the data gets modified and the individual row needs to be sent again)?

For extra good data, I'd also like it to capture the SOAP response in column X so that I have a record of success/failure of each SOAP request, but it's not a showstopper if that doesn't happen.

 

I've seen posts that hint at the kind of thing I need but as my VB knowledge is next to zero, I can't translate them into what I need, which is essentially "for each row, take cell W, send it as a SOAP request, place response in cell X". Thank you!

4 Replies

@TheChad Can you explain what you are trying to achieve?  A quick Google search for "send SOAP request with Excel VBA" gives a few results, but the code is always complex. 

@Ingeborg Hawighorst Hi, thank you for your reply! My apologies if my original request wasn't very clear. What I have is a spreadsheet where each row has information about an object, and I need to send that data as a SOAP request through an API.

 

Each row is concatenated so that the complete SOAP request is in Column W. All I need to do is to have a VBA solution for sending that SOAP request, and if possible (but not essential), recording the SOAP response in Column X.

 

Ideally I would like to send all the SOAP requests in the spreadsheet in one VBA script, but I will also settle for having a way to send each SOAP request individually if that's the way it has to be done.

 

Thank you!

@TheChad 

Do you need help with sending the SOAP request or with looping through the values in the sheet? If you have almost no knowledge of VBA, then that is not the easiest project to begin with. Have you had a look at the code that you can find with the search I mentioned above? It definitely won't be any easier than these code examples.

@Ingeborg Hawighorst I need help with both, to be honest. I have looked at the code you suggested, and I'm still confused - you're right that this probably isn't the easiest place to start with VBA!

 

Would you be able to advise on a 'relatively simple' script that I could use to send an individual SOAP request please? It only needs to take the value of a cell in Column W, which is the fully-formed SOAP request, and just send that. Ideally it would be great if I can capture the response too, but I'm ok with not doing that if it's going to prove overly-complicated.

 

Thank you!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies