terminate

  1. M

    VBA - How do I stop a Routine if the user cancels one of the Userforms

    I have a Sub Routine to help users add a new tab to a spreadsheet. It starts by opening a userform where they enter the name of the new tab. The userform then closes and the VBA then searches to see if there is already a tab with that name - if there is the user gets a message to say it already...
  2. S

    Excel close on Userform Termination

    Hi, I created a utility for data retrieval/input and it is meant for customer use, therefore I designed it to only show a userform when the workbook is opened, and close the excel application when the userform is terminated. However, this makes it so I now cannot access the Visual Basic editor...
  3. S

    [VBA] Terminate the displayed message box without pressing any buttons

    Hi, Is it possible to terminate a pop-up message box, by using something like Ctrl + Break, without clicking on "Yes", "No", "Cancel" etc... buttons ? I have a command button on an userform. When it is clicked, a message box would pop-up. However, pressing Esc / Ctrl + Break seem not working to...
  4. M

    Power query - query first of prioritized group

    All, I have attached simplified data set. <colgroup><col><col><col><col></colgroup><tbody> Asset Status Priority Timestamp A Terminate 1 13-Oct-18 A New 4 13-Oct-18 B Terminate 1 13-Oct-18 B Change 3 13-Oct-18 C Terminate 1 13-Oct-18 C Change 3 13-Oct-18 </tbody> Is it...
  5. T

    Error handling

    Is it good practice to always follow an on error with a resume? For example, method 1: Sub Start() On Error GoTo Errhandler a = 0 b = 10 / a On Error GoTo 0 ' do something Terminate: On Error GoTo 0 Exit Sub Errhandler: Msgbox "Div by 0" Resume Terminate End Sub...
  6. P

    Unexpected Termination of Sub from class property

    I have a form that gets data from a class but somehow when the nested sub that reads the data to the form gets terminated premature Private BA As BidApproval Private Sub UserForm_Initialize() Set BA = New BidApproval For Each c In Me.Controls If TypeName(c) = "ComboBox" Then...
  7. G

    Application.Quit doesnt terminate the Process

    Hello, i have following Problem: I wrote a Macro in Word, that opens an Excel file, changes stuff and saves ist again. When it runs a second time i get "method rows of object _global failed" as Error. (It works fine, if i close Word inbetween the runs). I suppose it's because the EXCEL:EXE *32...
  8. S

    Locate where my Form terminates

    Hi, Hi I'm trying to find the VBA code for determine where I terminate my form so when I initiate it again it will be located at the same position. I want to save the position into the value of a cell. I've tried: Private Sub UserForm_Terminate() Range("xPos").Value = Me.Left...
  9. L

    Terminating Media Player within Excel

    I wanted to integrate a video file (embedded as a Media Player object in a worksheet) together with other graphic results - all displayed in a loop . I have activated the video file using VB command : Worksheet.("Msg1").shapes("object13").OLEFormat.activate It worked fine and the Video was...

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