Problem with absolute refrence!!!

melewie

Board Regular
Joined
Nov 21, 2008
Messages
188
Office Version
  1. 365
Platform
  1. Windows
Hi all,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
I have this formula in VBA.<o:p></o:p>
ActiveCell.FormulaR1C1 = _
"=COUNTBLANK('[Employee_Data_Report_TEST.xls]Missing Data'!R[1]C[1]:R" & NumRows & "C1)"<o:p></o:p>

<o:p></o:p>
This is how it appears on the worksheet =COUNTBLANK('Missing Data'!$A3:B$690)<o:p></o:p>
<o:p></o:p>
But I need it to be a relative reference so it can be dragged across.<o:p></o:p>
<o:p></o:p>
Any help is greatly appreciated,

Thank you.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
That would be:

Code:
With ActiveCell
    .FormulaR1C1 = "=COUNTBLANK('[Employee_Data_Report_TEST.xls]Missing Data'!R[1]C[1]:R[" & NumRows - .Row & "]C1)"
End With
 
Upvote 0
That would be:

Code:
With ActiveCell
    .FormulaR1C1 = "=COUNTBLANK('[Employee_Data_Report_TEST.xls]Missing Data'!R[1]C[1]:R[" & NumRows - .Row & "]C1)"
End With

Thats nearly got but it it still shows as.
=COUNTBLANK('Missing Data'!$A3:B690)
 
Upvote 0
Do you want all relative?

Code:
    With ActiveCell
        .FormulaR1C1 = "=COUNTBLANK('Missing Data'!R[1]C[1]:R[" & NumRows - .Row & "]C)"
    End With
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top