Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perhaps the description of what actually needs to be done could be a
bit better but from what you've posted - something like this could be a start: Sub PutOneCellValueIntoAnother() Dim rngTarget as Range 'Here it's assumed that your d(n) is Range("A1") and your r(n) is Range("A2"). Set rngTarget = Range("A1") if rngTarget.value="" then rngTarget.value=Range("A2").value End Sub But as above - you'd need to describe better what you actually need to get more meaningfull advices here. On Nov 27, 2:48*pm, Robert Bloom wrote: 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 .NEThttp://www.eggheadcafe.com/tutorials/aspnet/aab197cf-64da-4233-9819-0... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Help Needed | New Users to Excel | |||
Excel help needed. | Excel Discussion (Misc queries) | |||
ActiveX Plugin needed in Excel 2000 missing from Excel 2003 | Excel Programming | |||
help needed with excel 97 | New Users to Excel | |||
VB code needed for running newer excel version macros in older excel versions | Excel Programming |