Add date to each sheet using range from another workbook

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,602
Office Version
  1. 365
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
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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
 
Upvote 0

Forum statistics

Threads
1,214,773
Messages
6,121,468
Members
449,033
Latest member
Kcolwell16

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