How to change same cell in multiple worksheets?

RockDawg

New Member
Joined
Mar 2, 2005
Messages
5
I have a workbook that is made up of many worksheets. Each worksheet is an individual price quote. I neeed I change the value of cell B6 for every worksheet?

Example:

The value of cell B6 is currently .66 across all the worksheets. I want to change them all to .85 without having to manually edit each worksheet. Can I do this easily?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Select the first sheet you want to modify, then hold the SHIFT key and select the last sheet you want to modify. All Sheets between will be selected. (or you can right click on one sheet tab and SELECT ALL SHEETS, if it really does apply to every sheet.

Then make the change and all sheets will be affected.

Be sure to unselect all sheets before making further changes...
 
Upvote 0
You could select all the sheet tabs and then enter the value in B6.

Or you could put the value in B6 of one sheet and references to that cell in the other sheets.
 
Upvote 0
You could use formulas on the other worksheets pointing back to the main one.

=Sheet1!B6 would show the value of B6 on sheet1 for whatever worksheet it is used on.
 
Upvote 0
Welcome to the Board!

Here's some code that'll do it for you:
Code:
Sub ChangeB6()
    Dim ws As Worksheet
    Dim NewValue As Currency
        NewValue = Application.InputBox("Please enter the new value", Type:=1)
        For Each ws In ActiveWorkbook.Worksheets
            ws.[B6] = NewValue
        Next ws
End Sub
You could also add another input box to prompt for the cell to change.

Hope that helps,

Smitty
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

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