Suggestion needed replacing one formula on a distributed WB

fmkjr

Board Regular
Joined
Jun 4, 2006
Messages
68
What would be the best way to replace a formula on a workbook that has been distributed to aprox. 1000 users without resending the sheet? I would like to send some sort of "patch" to the users which would replace the formula in the sheet without changing the data throughout the rest of the workbook.

The average end user is technically challenged.

Would it be a worksheet when opened prompted the user to open the other WB (the one that needs corrected) which would then navigate to the WS that holds the formula, turns off the protection, replaces the old formula in the cell, turns on protection, then saves the WB?

thanks
frank
 
you can use Sendkeys for this, but if we can avoid that, it would be better

what is the replacement you want to do in the code ?
showing the line which needs to be changed, could provide some thoughts of another route to go ...

best regards,
Erik
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I was planning on deleting the module then copying over an updated module. But if we can change two lines, that would work too...


The code to change is in a module called populateData

Sub populateINTL()
Worksheets("International Performance").Range("e8").Value = Worksheets("Intl_Data").Range("b3").Value
Worksheets("International Performance").Range("e7").Value = Worksheets("Intl_Data").Range("c3").Value
Worksheets("International Performance").Range("e9").Value = Worksheets("Intl_Data").Range("f3").Value

End Sub

The first two lines need to be changed;
.range("e8") should be ("e7")
.range("e7") should be ("e8")

thanks
frank
 
Upvote 0
this should be rather simple
you could refer to a specific cell to get the address (kinda INDIRECT function :) )

example
say A1 houses the text F5
with this code
Code:
Range(Range("A1")) = "hello"
you will put hello in cell F5

so if you want to change references, just write to the "reference"cell

tips:
you can use a named range
Code:
Range(Range("reference_cell")) = "hello"
you would better hide this cell


applied to your code
Code:
Worksheets("International Performance").Range("reference_cell").Value = Worksheets("Intl_Data").Range("b3").Value
best regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,215,776
Messages
6,126,830
Members
449,343
Latest member
DEWS2031

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