ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VB excel help needed (https://www.excelbanter.com/excel-programming/436716-re-vbulletin-excel-help-needed.html)

Robert Crandal

VB excel help needed
 
you mean, if cell d(n) is empty, then copy cell r(n)
into cell d(n)??

Here's my guess:

If IsEmpty(Range("D1")) Then
Range("D1").Value = Range("R1").Value
End If


"Robert Bloom" wrote in message ...
I need to write a macro for excel to do the following.

If cell d(n) is "" the copy r(n) into d(n).

anyone know what sub needs to be written?

Cheers

EggHeadCafe - Software Developer Portal of Choice
COM+ Services Overhead in .NET
http://www.eggheadcafe.com/tutorials...erhead-in.aspx




All times are GMT +1. The time now is 12:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com