Posts by leal32b • 11 points
3 posts
-
0
votes1
answer48
viewsA: VBA Before Close
Good night, Leonardo. See if the code below helps, please: Private Sub Workbook_BeforeClose(Cancel As Boolean) Cancel = MsgBox("Você enviou os dados?", vbQuestion + vbYesNo) = vbNo End Sub…
-
1
votes1
answer184
viewsA: How to print only the first page
Good afternoon, Lucas. Add the line From:=1, To:=1, as the example below: Sub Macro1() ChDir "C:\Users\user\Desktop" ActiveSheet.ExportAsFixedFormat _ Type:=xlTypePDF, _…
-
0
votes2
answers374
viewsA: SUMS with reference within the array
Use the formula below, where "C1" and "D1" are the cells that should contain the dynamic values. After pasting the formula confirm with Ctrl+Shift+Enter, for being a vector formula.…