johnny51981
Active Member
- Joined
- Jun 8, 2015
- Messages
- 412
100% VBA Plagiarist here, and I've been using the code from this post and I cannot love it anymore every day. LOL.
That said, I would like to update a different piece of VBA. This currently prompts the user that the refresh is complete, changes to a different environment type (so the VBA isn't continually tripped), saved, and closed.
This code is housed in the "Status" Sheet, which is where the table's results (from the VBA in the linked post) land.
I am working on handing this process off to someone else, and would like to add some additional prompts as there are some things that I do, that need to be done, but I remember to check since I've done it for so long.
I would it to pass through and confirm 2 questions after the RefreshStatus is set to "COMPLETE". The full order that I would find ideal would be...or something of the like.
Any help is appreciated!
That said, I would like to update a different piece of VBA. This currently prompts the user that the refresh is complete, changes to a different environment type (so the VBA isn't continually tripped), saved, and closed.
VBA Code:
Sub worksheet_change(ByVal target As Range)
Set target = Range("RefreshStatus")
If target.Value = "COMPLETE" Then
MsgBox ("All Received PDF Data has now been scraped. Step 1 will now close to begin Step 2."), vbOKOnly
Call ReportEnvirontment_Test
Call CloseExcel
End If
End Sub
This code is housed in the "Status" Sheet, which is where the table's results (from the VBA in the linked post) land.
I am working on handing this process off to someone else, and would like to add some additional prompts as there are some things that I do, that need to be done, but I remember to check since I've done it for so long.
I would it to pass through and confirm 2 questions after the RefreshStatus is set to "COMPLETE". The full order that I would find ideal would be...or something of the like.
VBA Code:
Sub worksheet_change(ByVal target As Range)
Set target = Range("RefreshStatus")
If target.Value = "COMPLETE" Then
MsgBox ("All Received PDF Data has now been scraped."), vbOKOnly
Call ReportEnvirontment_Test
'Something in here that would be an alert [B]IF[/B] there is results in a specific query. This will be a Named Range called "Fallout1", which will be a Yes or No.
'If Yes, MsgBox ("There is Fallout in Table 1. Please review and refresh."), vbOKOnly and End VBA Here
'If No, allow VBA to continue.
'Something in here that would be an alert [B]IF[/B] there is results in a second specific query. Named Range called "Fallout2", also Yes or No.
'If Yes, MsgBox ("There is Fallout in Table 2. Please review and refresh."), vbOKOnly and End VBA Here
'If No, allow VBA to continue.
Call CloseExcel
End If
End Sub
Any help is appreciated!