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: 20
  • Capture 2.PNG
    Capture 2.PNG
    10.4 KB · Views: 22

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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