D
Dennis
I have attempted to create a macro to do the following. Even though I know XL reasonably
well, Macros & VBA are not, at all, my strength.
My system is XP Pro with XL 2002.
Here is what I want to do in VBA:
1) For a selected Range;
2) Change the formulas in the Selected Range
From: ='Data Source'!B7 (Initial formula from Paste>Special>Past Link)
To : =IF('Data Source'!B7="","",'Data Source'!B7) (After addition of IF(empty))
A more involved version that I would like the same VBA code to handle:
To : =IF('Data Source'!D7=""," ",CONCATENATE(MID('Data Source'!D7,1,3)," ",MID('Data Source'!D7,4,3)," ",MID('Data Source'!D7,7,4)," ",MID('Data Source'!D7,11,3)," ",MID('Data Source'!D7,14,1)))
Is there a VBA "answer" that can encapsulate various "Paste>Special>Past Link "Selected" formulas with the IF(empty) formulas above?
Replacing data in a cell seems more simple but I am not sure how it best works with formulas.
Thanks in advance!
Dennis
well, Macros & VBA are not, at all, my strength.
My system is XP Pro with XL 2002.
Here is what I want to do in VBA:
1) For a selected Range;
2) Change the formulas in the Selected Range
From: ='Data Source'!B7 (Initial formula from Paste>Special>Past Link)
To : =IF('Data Source'!B7="","",'Data Source'!B7) (After addition of IF(empty))
A more involved version that I would like the same VBA code to handle:
To : =IF('Data Source'!D7=""," ",CONCATENATE(MID('Data Source'!D7,1,3)," ",MID('Data Source'!D7,4,3)," ",MID('Data Source'!D7,7,4)," ",MID('Data Source'!D7,11,3)," ",MID('Data Source'!D7,14,1)))
Is there a VBA "answer" that can encapsulate various "Paste>Special>Past Link "Selected" formulas with the IF(empty) formulas above?
Replacing data in a cell seems more simple but I am not sure how it best works with formulas.
Thanks in advance!
Dennis