JoshuaKC29
New Member
- Joined
- Apr 20, 2019
- Messages
- 10
Wowza,
Wasn’t sure what was the best way to word my question. I’m currently working on a code that transfers dates from an excel sheet into a webform and selects a specific export button on the website (just pulling reports essentially).
Each button pulls a specific report. So there’s a need to specify the element ID of the from and to dates for each individual report as well as the ID of the button used to export the data.
Currently, I’ve assigned each button a macro that sets a Boolean to be True, then the macro calls the main subroutine. The main subroutine knows which text box to fill and which button to press based off of which Boolean is set to True.
i also have a requirement to have a button to execute an export of all reports. What I did to accomplish this was used an integer to determine if the export all button was selected. The initial macro sets the first Boolean to true and at the end of the main subroutine I check to see if the integer is = to 1, if so, the integer is = to the integer + 1, the initial Boolean is set to false, the next Boolean is set to true and I go to the start of the main subroutine until all reports have been pulled.
I only started learning VBA about 6 months ago so I’m sure a lot of my methods aren’t the most practical. I have a tendency to do what I know which is why I’m reaching out to see if there is possibly an angle I didn’t consider when working on this project.
Wasn’t sure what was the best way to word my question. I’m currently working on a code that transfers dates from an excel sheet into a webform and selects a specific export button on the website (just pulling reports essentially).
Each button pulls a specific report. So there’s a need to specify the element ID of the from and to dates for each individual report as well as the ID of the button used to export the data.
Currently, I’ve assigned each button a macro that sets a Boolean to be True, then the macro calls the main subroutine. The main subroutine knows which text box to fill and which button to press based off of which Boolean is set to True.
i also have a requirement to have a button to execute an export of all reports. What I did to accomplish this was used an integer to determine if the export all button was selected. The initial macro sets the first Boolean to true and at the end of the main subroutine I check to see if the integer is = to 1, if so, the integer is = to the integer + 1, the initial Boolean is set to false, the next Boolean is set to true and I go to the start of the main subroutine until all reports have been pulled.
I only started learning VBA about 6 months ago so I’m sure a lot of my methods aren’t the most practical. I have a tendency to do what I know which is why I’m reaching out to see if there is possibly an angle I didn’t consider when working on this project.