Im trying to get Excel to load some formulas when the workbook opens, however it doesn't. Why would this be?
Im trying to get Excel to load some formulas when the workbook opens, however it doesn't. Why would this be?
What code did you put in what module?
Entia non sunt multiplicanda sine necessitate
here's an example
Ive tried it in the module and where you can code for the indivudual page. Do you have to create a macro?Private Sub workbook_open()
Sheets(2).Range("B19").Formula = "=B17"
End sub
This macro belongs in the ThisWorkbook module.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
when i do 2 it works fine. when i add more than that i get this error
Run time error '1004':
Application-defined or object-defined error
I am so confused
Add more what?
add more formulas such using this just changing numbers:
and get the error i posted aboveSheets(2).Range("B19").Formula = "=B17"
I will suggest to attach a example sheet with your post. So that we can debug it.
I cant get it to come up in a sample spreadsheet... i dont know
Ok it has something to do with my spreadsheet. im going to have to start over.
thanks for the help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks