Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can anyone help fix the syntax on this macro? If the answer=6, then I want to run the macro called "format".
sub ShowPopup
Answer=MsgBox("Do you want to export search results to Excel?",4,"Export Search Results")
If Answer=6 Then
Run "format"
Else
Exit Sub
End Sub
Hi,
Use like this,
Call Format() or call Format
Hope it helps
HI,
Sub ShowPopup
x=MsgBox("Would you like to export search results to Excel?",4,"Export Excel")
if x = 6 Then call exportToExcel("CH01", "C:\Export.xls")
End Sub
Instead of exporting to Excel in the Macro, what would the syntax be to just run the macro called "format"? Sorry, the question in the message box was misleading.
Hi,
Use like this,
Call Format() or call Format
Hope it helps
Thanks!!