Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With this test snippet:
Col A to C = text Col D to W = formulas like: =IF(Mon!D3="","",Mon!D3) LastCol to return column number of the cell in row 3 that the formula has returned a VALUE. Thanks. Howard Sub LastColumnInOneRow() 'Find the last used column in a Row: row 3 in this example (23) Dim LastCol As Integer With ActiveSheet LastCol = .Cells(3, .Columns.Count).End(xlToLeft).Column End With MsgBox LastCol End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Numbers in Column, Leave Formulas in Column Intact | New Users to Excel | |||
Copy column, paste special formulas & number formats doesn't work | Excel Discussion (Misc queries) | |||
Index with mulitple value returns and muliple column returns | Excel Worksheet Functions | |||
highest # in a column A & returns answer from column B Formula | Excel Discussion (Misc queries) | |||
Ignore zero in column for subtotal | Excel Discussion (Misc queries) |