Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA & Excel: Concatenation problem
Here's code I have placed in a command button on an Excel 2003
spreadsheet. I'm getting the last non-empty row on a sheet so I can use it to set a range. I am so far unable, however, to determine how to concatenate this numeric value as part of the range expression below. I'd be very grateful if someone could oint out how to do this. Thanks! Henry DPM Mellon ---------------------------------------------------------------------- Private Sub cmdShow_Form_Click() Dim intLastRow As Integer Dim strEndRange As String ThisWorkbook.Sheets(3).Activate intLastRow = ActiveSheet.Range("A65536").End(xlUp).Row ' ThisWorkbook.DeleteEmptyRows Range("C2:F65536") strEndRange = Trim(Str(intLastRow)) ' ----------------------------- ' This is the problematic line ' ----------------------------- UserForm1.lstCLID.RowSource = ThisWorkbook.Sheets(3).Range("C2:F" & _ strEndRange)" UserForm1.Show End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel concatenation | Excel Worksheet Functions | |||
Concatenation in Excel | Excel Worksheet Functions | |||
Concatenation in Excel 2003 | Excel Worksheet Functions | |||
Concatenation Problem / VBA ? | Excel Worksheet Functions | |||
excel save AND concatenation problem | Excel Programming |