Macro to lookup date, name and place data into it

ExcelRytis

New Member
Joined
Dec 22, 2017
Messages
13
Good morning all of you,

This is my first ever post in this forum and I am sincerely stuck on this on for the last week...

I am looking for a macro to lookup cells B2 and B3 in calculator sheet which are name and date and cross referencing in a productivity spreadsheet determine the cross cell into which it needs to paste the data and actually paste it as value.

Any ideas?

date1date2date3date4
name1
name2
name3
name4Cross referenced

<tbody>
</tbody>
 

ExcelRytis

New Member
Joined
Dec 22, 2017
Messages
13
Now i finally found how to return the cell address that the data needs to go to, how do i get VBA to paste it into that address?

formula to get address: =CELL("address",INDEX(Productivity!A4:JA73,MATCH(C5,Productivity!A4:A97,0),MATCH(B5,Productivity!A4:JA4,0)))
 

ExcelRytis

New Member
Joined
Dec 22, 2017
Messages
13
I'm looking at a VBA code something like
Code:
Application.Goto Reference:=Range("LocationToPasteTo.Value")
but it does not seem to like that... Please someone help..
 

ExcelRytis

New Member
Joined
Dec 22, 2017
Messages
13
Found this code, but i don't know how to implement it correctly......
Code:
[COLOR=#333333]Public Sub TesterA01()[/COLOR]
[COLOR=#333333]Dim SH As Worksheet[/COLOR]
[COLOR=#333333]Dim arr As Variant[/COLOR]
[COLOR=#333333]Dim rng As Range[/COLOR]

[COLOR=#333333]arr = Split(ActiveCell.Value, "!")[/COLOR]

[COLOR=#333333]Set SH = Sheets(arr(0))[/COLOR]
[COLOR=#333333]Set rng = SH.Range(arr(1))[/COLOR]

[COLOR=#333333]Application.Goto Reference:=rng[/COLOR]

[COLOR=#333333]End Sub[/COLOR]
 

Forum statistics

Threads
1,078,546
Messages
5,341,093
Members
399,418
Latest member
joterde

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