Multiple variables in SAP - I can't find a solution

Fenes

New Member
Joined
Apr 19, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I'm new to the forum and I'm writing to you because I haven't managed to find an answer in the various posts. I started learning and using macros some time ago in order to automate / save time in my work but I must admit that I have very little knowledge in the field ...

I'm using SBO SAP Analysis to insert data into an Excel file and I've started using Macros to fill in fields from Excel cell values. This works, but I can't figure out how to adapt my code in the case where I need to fill in 2 values for the same variable. In the example below, I want to retrieve data for April 2023 and April 2024. My macro works and carries over the first value "04.2023" but I can't figure out how to insert the second value "04.2024". I hope the image will help illustrate the problem.

If I'm not mistaken, the question was asked on this forum a few years ago but I don't understand the answer either :(
VBA code to select multiple variables in SAP AfO
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Just realize that the capture is missing :​

Prob.JPG
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top