When I want to find the last used cell value, I use: Dim LastRow As Long LastRow = Range("E4:E48").End(xlDown).Row Debug.Print LastRow I’m getting the wrong output when I put...
It seems Excel 2013 doesn’t read CSV files correctly (Excel 2010 does). Every time I open .csv files, all my data are displayed in the first column. I know...
I am programmatically exporting data (using PHP 5.2) into a .csv test file. Example data: Numéro 1 (note the accented e). The data is utf-8 (no prepended BOM). When...
Lets say I have one cell A1, which I want to keep constant in a calculation. For example, I want to calculate a value like this: =(B1+4)/(A1) How do...
I would like to exit my for loop when a condition inside is met. How could I exit my for loop when the if condition has been met? I...
Is there an efficient way to identify the last character/string match in a string using base functions? I.e. not the last character/string of the string, but the position of...
What is the difference between .text, .value, and .value2? Such as when should target.text, target.value, and target.value2 be used? 7 Answers 7
I need to return an empty cell from an Excel formula, but it appears that Excel treats an empty string or a reference to an empty cell differently than...
Is there an in-built function to check if a cell contains a given character/substring? It would mean you can apply textual functions like Left/Right/Mid on a conditional basis without...
I would like to loop through the files of a directory using vba in Excel 2010. In the loop, I will need: the filename, and the date at which...

