LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Else no If

Try the true branch in a separate line:

If LC2 = 0 Then

GoTo SKIP
Else
Sheets("Estimated - BA Approved").Select
Range("A3").Select
DC2 = Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Sheets("QueryResultsExcel 1 ").Select
Range("A3:R" & LC2).Select
Selection.Copy
Sheets("Estimated - BA Approved").Select
Range("A" & DC2).Select
ActiveSheet.Paste
End If
SKIP:


Regards,
Stefi

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"