Logo 
Search:

VB.Net Answers

Ask Question   UnAnswered
Home » Forum » VB.Net       RSS Feeds
  Question Asked By: Lee Koefoed   on Jul 16 In VB.Net Category.

  
Question Answered By: Lee Koefoed   on Jul 16

Solution found:

Sub CMRDatenDSc_Button2_Click()


On Error GoTo ErrorHandle


Application.EnableEvents = False 'Prevents infinite loop
lastrow = Range("A1048576:X1048576").End(xlUp).Row 'Last row in column A
Range("Y6:AE6").AutoFill Destination:=Range("Y6:AE" & lastrow), Type:=xlFillDefault


BeforeExit:
Application.EnableEvents = True
Exit Sub


'Manage programme error
ErrorHandle:
Resume BeforeExit 'Directs back to BeforeExit


End Sub

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 


Tagged: