vbok

  1. R

    Sub Exiting Without Moving Through Completely

    For some reason, the code below isn't moving on to the Else statement when the value of R26 isn't > 0. Can someone help me understand where I went wrong in my code please? Sub Assign_MD1() Application.ScreenUpdating = False Dim mTP, mSumm, mMD1 As Worksheet Dim Response As VbMsgBoxResult Set...
  2. I

    Sorting a range alphabetically after input box adds new value

    I'm creating a worksheet that has one column and one header for the column. There is a button that prompts an input box and creates a new row in the column for the inputted value. I am trying to create a procedure that sorts the column alphabetically after the input box value has been added as a...
  3. S

    Msgbox Automatic OK In VBA

    Hi All, I have a macro in my main workbook that runs before I get to work in the AM that opens several workbooks and runs macros within those workbooks. The macros within the other workbooks call msgbox's on open that ask the user if they want to refresh click ok or cancel. I am having issues...
  4. dukeofscouts

    MsgBox question

    Here is my plan, I've got a msgbox in VByesno format. What I'd like to do is set the next action to be as follows If Yes then MsgBox 1 (VBokonly) If No then MsgBox 2 (Vbokonly) Run rest of sub how can I get this result?

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top