![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
I'm trying to copy data from one cell to another if 2 conditions are satisfied but not having much fun at the moment. I guess you can see from the code underneath what I'm trying to achieve, if J4 is blank and A4 equals March, then copy cell A2 from sheet 4 to the J4 in the current sheet.
Range("J4").Select If j4 = "" Then If a4 = "March" Then ActiveCell.formula = "=sheet4!A2" End If End If Any suggestions? Thanks Matt |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Try this
Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
Thanks Barrie
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|