Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default VB excel help needed

Assuming we are talking about running this code against the ActiveSheet and
that d(n) means you are referring to the Nth row in Column "D", then I think
you may be looking for this construction for your code...

If Cells(n, "D") = "" Then Cells(n, "D").Value = Cells(n, "R").Value

--
Rick (MVP - Excel)


"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


Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel help needed. razibhasan New Users to Excel 1 March 29th 08 09:35 PM
ActiveX Plugin needed in Excel 2000 missing from Excel 2003 cadcam Excel Programming 0 July 13th 06 01:05 AM
excel help needed New Yooper Excel Discussion (Misc queries) 4 February 1st 06 09:38 PM
Excel Help Needed!!! hbjay Excel Worksheet Functions 3 January 9th 06 04:05 AM
VB code needed for running newer excel version macros in older excel versions Tom Excel Programming 6 October 16th 03 03:11 AM


All times are GMT +1. The time now is 09:26 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"