Create 3D Cell References with Macro

SamanthaSkilltec

New Member
Joined
Apr 11, 2019
Messages
20
Hi all... me again *sigh*

I am trying to create a macro that will create a 3d-reference to another sheet - all references need to be added to the sheet 'Reminders' and will be based on the values in the active row on the active sheet.

I kinda had two macros that did bits of what I wanted and I've tried to put it all together but to no avail... I'm not getting debug messages anymore (yay) but the only part that's working is the part copying the contents of Cell A1 on the active sheet into the last empty row of column A on Reminders... nothing else happens.

I'll be so, SO super grateful if anyone can help!

TIA!

Samantha

Sub cellRefTEST()
'
Dim lastrow As Long


With ThisWorkbook.Worksheets("Reminders")
lastrow = FormulaR1C1 = "=ActiveSheet!R[ActiveCell.Row]C[1]"
'(2, .Cells(.Rows.Count, "B").End(xlUp).Row + 1)

'.Range("B" & lastrow).
'Range("A" & ActiveCell.Row).Value =
'FormulaR1C1 = "=ActiveSheet!R[ActiveCell.Row]C[1]"
'.Resize(, 16).Value = _


'.Resize(, 16).Value

Dim R As Range
'Range("A1:E1").Copy

Set R = Worksheets("Reminders").Cells(Rows.Count, 1).End(xlUp) 'last cell in Column A with data
If Len(R.Value) > 0 Then Set R = R.Offset(1)
R.Value = ActiveSheet.Range("a1").Value
End With
End Sub
 

StephenCrump

Well-known Member
Joined
Sep 18, 2013
Messages
3,523
Only a guess, based on the bits of code posted:

Worksheets("Reminders").Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(, 16).Formula = "='" & ActiveSheet.Name & "'!A" & ActiveCell.Row
 

SamanthaSkilltec

New Member
Joined
Apr 11, 2019
Messages
20
Only a guess, based on the bits of code posted:

Worksheets("Reminders").Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(, 16).Formula = "='" & ActiveSheet.Name & "'!A" & ActiveCell.Row
PERFECT!!!

Thank you so much! This was the last major thing to sort out for this project!! :)

Many thanks

Samantha
 

Forum statistics

Threads
1,078,444
Messages
5,340,319
Members
399,366
Latest member
ahmed elsaid

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top