About 10,000,000 results
Open links in new tab
  1. vba - Check if a string contains another string - Stack Overflow

    Feb 19, 2014 · If you need to find the comma with an excel formula you can use the =FIND(",";A1) function. Notice that if you want to use Instr to find the position of a string case-insensitive use the third parameter of Instr and give it the const vbTextCompare (or just 1 for die-hards).

  2. excel - How to show current user name in a cell? - Stack Overflow

    In VBA insert a new module and paste in this code: Public Function UserName() UserName = Environ$("UserName") End Function Call the function using the formula:

  3. excel - How to use OR in if statement in VBA - Stack Overflow

    Jul 14, 2017 · Microsoft Excel's VBA: If Statements running incorrectly, Always Run. 0.

  4. excel - Add sensitivity label - Stack Overflow

    Dec 7, 2022 · End With docsenselabel.setlabel(labelInfo, labelInfo) End Sub '' Ad-hoc method that can be used in a debugger to get the required Sensitivity label parameters '' Leave this in but commented out 'Sub getlabel() ' Dim xlApp As Excel.Application = New Excel.Application ' Dim xlWb As Workbook = xlApp.Workbooks.Open("...\InternalSensitivity.xlsx ...

  5. How to find a value in an excel column by vba code Cells.Find

    Feb 18, 2013 · Dim list As ListObject Dim config As Worksheet Dim cell as Range Set config = Sheets("Config") Set list = config.ListObjects("tblConfig") 'search in any cell of the data range of excel table Set cell = list.DataBodyRange.Find(searchTerm) If cell Is Nothing Then 'when information is not found Else 'when information is found End If

  6. How can I send an HTTP POST request to a server from Excel using …

    Jul 5, 2019 · Regarding input... If you want the results to refresh when you change certain cells, make sure those cells are the argument to your VBA function. This won't work on Excel for Mac 2008, which doesn't have VBA. Excel for Mac 2011 got VBA back. For more details, you can see my full summary about "using web services from Excel."

  7. vba - Continue For loop - Stack Overflow

    You're thinking of a continue statement like Java's or Python's, but VBA has no such native statement, and you can't use VBA's Next like that. You could achieve something like what you're trying to do using a GoTo statement instead, but really, GoTo should be reserved for cases where the alternatives are contrived and impractical.

  8. if condition with "and" combine "multiple or" in Vba Excel

    Aug 16, 2017 · How to Write OR statement in excel VBA with multiple conditions. 3. If And Or Multiple Statements in VBA. 2.

  9. vba - Get the current cell in Excel VB - Stack Overflow

    The keyword "Selection" is already a vba Range object so you can use it directly, and you don't have to select cells to copy, for example you can be on Sheet1 and issue these commands: ThisWorkbook.worksheets("sheet2").Range("namedRange_or_address").Copy ThisWorkbook.worksheets("sheet1").Range("namedRange_or_address").Paste

  10. How to create and write to a txt file using VBA - Stack Overflow

    There is no My.Computer.FileSystem object in VBA by default and so you can't use the WriteAllText method, either. – Marcus Mangelsdorf Commented Mar 28, 2018 at 7:48

Refresh