Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2012, 09:42 AM
Authorized User
 
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default Looping and copying

Hi,

I have a macro that has For Each loop and If statement. If the condition is true, the macro will copy a row in one sheet into another and this is working fine. My problem is that if the condition is false the macro leaves a blank row in the other worksheet. It looks like, the macro is still copying but because the condition is not met it leaves a blank row.

Can anyone please explain how to avoid the blank rows.

Thanks
Khalil
 
Old September 16th, 2012, 11:40 AM
Friend of Wrox
 
Join Date: Sep 2010
Posts: 171
Thanks: 0
Thanked 14 Times in 14 Posts
Default

u need to post the code so we can see what's going on
 
Old September 16th, 2012, 06:46 PM
Authorized User
 
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default Looping and copying

Thank you for trying to help.

Luckily I've found the problem and resolved it.

Regards
Khalil





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying in VBA jeskit Excel VBA 1 February 2nd, 2011 11:01 AM
Copying DOCTYPE madanshah16 XSLT 1 August 18th, 2007 12:23 PM
Copying images arnabghosh PHP How-To 1 February 21st, 2006 07:49 AM
Copying files marclena General .NET 2 June 18th, 2004 08:24 AM
Copying a database Droobles SQL Server 2000 2 February 19th, 2004 09:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.