Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Grafton54
  • Content: Threads
  • Order by date
  1. Grafton54

    For next loops - question

    Some of you familiar with C may know the "continue" command, for example: for (i=0; i<5; i++) // equivalent to For i = 0 To 5 in VB { if (some condition) cpntinue; some statement; } // In VB this would say Next i In this case, if "some condition" is satisfied, then instead of...
  2. Grafton54

    Selecting cells in Excel using variables

    I need to select a range of cells from (1,1) to (i,8), where i is variable computed during the execution of my VBA routine. Microsoft documentation (and my book) shows a way you can select the cells if the co-ordinates are hard-coded, e.g. range("a2:b3").select However, how do you do that if...
  3. Grafton54

    Custom message boxes

    I want to create a message box with the text "Which plant are you upgrading?" and three buttons: "Live" "Test" and "Cancel". The text is not difficult to produce, but I do not know how to generate the buttons. I have searched the help instructions of the MsgBox function but it seems that the...
  4. Grafton54

    Problems with copying times

    I am trying to copy a cell containing a time to another using .value but this results in a decimal! Try running this on your computer: Cells(1, 1).Value = "18:00" Cells(1, 2).Value = Cells(1, 1).Value In the first cell, the value is 18:00, but the value in the second cell is 0.75! (=18/24...

Part and Inventory Search