Modifying formula with a macro

SeaWitchVA

New Member
Joined
Oct 4, 2005
Messages
9
I would appreciate a bit of help; I'm sure this is much simplier than I'm making it out but I'm having a bad blonde day.

I have multiple columns in a master worksheet. Row one of each column holds the name of a supplimentary worksheet that I need to reference. The spreadsheet looks something like this (I've displayed the formulas).

wABC wXYZ wMAD
=wABA!$B$1 =wXYZ!$B$1 =wMAD!$B$1

Currently each time I add or edit a row, I copy the formula then edit the worksheet name. I'd like to grab the name from row one and edit the formula using a macro.

Any suggestions on how I can accomplish this?

Thanks,
SW
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Why not use INDIRECT?

=INDIRECT("'"&A1&"'!B1")
 
Upvote 0
Norie - I'm speechless (something that rarely happens). That's EXACTLY what I was looking for. I'd never heard of INDIRECT command before. So simple and to think of all those hours wasted so far.

You're awesome, thanks!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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