Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA Row Function
VBA Row Function
Resolved · Low Priority · Version 2003
VBA Row Function
How do you delete rows using a variable.Rows("1:5").delete
works but how do you use a variable name
For upcoming training course dates see: Pricing & availability
RE: VBA Row Function
Hi TonyThanks for your question
The following code prompts the user to enter a start and finish row and then cocatenates them into a string that is used in the delete method
Sub RowDeleter()
Dim intStart As Integer
Dim intFinish As Integer
Dim strDelete As String
intStart = InputBox("Enter Start Row")
intFinish = InputBox("Enter Finish Row")
strDelete = intStart & ":" & intFinish
Rows(strDelete).Delete
End SubRegards
Stephen
|
|
» Forum post: Powerpoint |



Course updates

