I would like help if someone can be so kind... I've been testing different ways long enough... no hair left... literally. Trying to make a formula that when pasted in a cell range will use a file path as a variable and a cell's value that will change according to its location....
Dim fileLOCATION As String
fileLOCATION = Application.ActiveWorkbook.Path
Dim Last_Row1 As String
Last_Row1 = ActiveSheet.Range("A1048576").End(xlUp).Row
Dim Last_Col1 As Sstring
Last_Col1 = .Cells(1, .Columns.Count).End(xlToLeft).Column
Dim myrange As String
myrange = "C2:" & "C" & Last_Row1
Range("C2").Select
ActiveCell.FormulaR1C1 = "=" & fileLOCATION & "" & (Range("B2").Value)
need B2 value to change as it's copied down but fileLOCATION will stay the same
Thanks for your help in advance,
sybo67
Dim fileLOCATION As String
fileLOCATION = Application.ActiveWorkbook.Path
Dim Last_Row1 As String
Last_Row1 = ActiveSheet.Range("A1048576").End(xlUp).Row
Dim Last_Col1 As Sstring
Last_Col1 = .Cells(1, .Columns.Count).End(xlToLeft).Column
Dim myrange As String
myrange = "C2:" & "C" & Last_Row1
Range("C2").Select
ActiveCell.FormulaR1C1 = "=" & fileLOCATION & "" & (Range("B2").Value)
need B2 value to change as it's copied down but fileLOCATION will stay the same
Thanks for your help in advance,
sybo67