Add date to each sheet using range from another workbook

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,476
Office Version
  1. 2016
Platform
  1. Windows
Hi all


My workbook named Monthly Report Template has a sheet named Info

I would like each sheet in my separate active workbook to have a date populated from the above workbook/sheet.

So for example...

each sheet in the active workbook would have F4 populated with the value of Info!C

eg..

Sheet1 cell ref F4 = Workbook - Monthly Report Template Sheet Info Range C2
Sheet2 cell ref F4 = Workbook - Monthly Report Template Sheet Info Range C3
Sheet3 cell ref F4 = Workbook - Monthly Report Template Sheet Info Range C4
and so on

hope this makes sense and thanks in advance
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,476
Office Version
  1. 2016
Platform
  1. Windows
this works for me...

Code:
Sub PopulateDates() 
    Dim wbReport As Workbook 
    Set wbReport = Workbooks("Monthly Report.xlsx") 
    i = 0 
    For Each ws In ActiveWorkbook.Sheets 
        ws.Range("F4").Value = wbReport.Sheets("INFO").Range("G2").Offset(i, 0).Value 
        i = i + 1 
    Next 
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,207
Messages
5,594,841
Members
413,944
Latest member
3xc3ln00b

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
Top