Find and Replace VBA

sK67sK67

New Member
Joined
Dec 12, 2016
Messages
1
My boss has asked me to automate a file, I have gotten the file to do everything once the data is inside it. Now it is just getting the data there.

The data will be saved in the same format every month like so: L:\Packaging\ANALYSIS\{Year}\{Year Month}\Forecast\[Forecast{Month}.xlsx]

Currently I have a drop down on the first sheet that lets you select the month, then the entire workbook updates calculations based on the new month.

What I was thinking:

Have a macro that finds cells that look up data in that file, then replaces the year and month data with the new data. on several sheets

The data I want to replace is on sheet2 sheet4 sheet7 the data I want to replace it with is on Sheet1 B3.

Also: is it possible to have the macro run every time the drop down box is changed?

Sorry if this is super basic, but I am new to using VBA.

Thank you all,
Robert.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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