Needing formula to copy over without referencing master workbook

dwalls

New Member
Joined
May 28, 2024
Messages
5
Office Version
  1. 2021
Platform
  1. Windows
First time posting on the forum. I don't consider myself an expert in Excel. I have built a macro to copy a 'template' employee attendance calendar to 300+ workbook folders within my employee files (each workbook is an individual's attendance record with each sheet representing a year). While the macro has saved countless hours from the original method of copy & pasting a new year template to each file, there is 1 major hiccup. In the pictures below, I am wanting the Previous year's point total to carry over to the next sheet to help keep a running total. When the macro runs, I can either have the sheets reference my 'template' sheet that runs the macro or put a "#" sign before the formula (neither are what I need). Any help would be greatly appreciated in automating this! I currently am running the macro to put future years in but then having to individually open the 300+ files to change the "#" to an = sign to make it a formula.
 

Attachments

  • Capture.PNG
    Capture.PNG
    10.5 KB · Views: 19
  • Capture 2.PNG
    Capture 2.PNG
    10.4 KB · Views: 21

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
If all you need to do is replace the # with =, couldn't you just add it to your macro?

VBA Code:
Dim wkb As Excel.Workbook
Dim wsh As Excel.Worksheet

'''''' whatever steps to create your workbook

For Each wsh In wkb.Worksheets
  wsh.Replace What:="#", Replacement:="="
Next wsh
 
Upvote 1
Solution

Forum statistics

Threads
1,223,876
Messages
6,175,129
Members
452,614
Latest member
MRSWIN2709

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