Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a function in another spreadsheet

Status
Not open for further replies.

SonicBoomBand

Technical User
Jun 4, 2004
42
GB
I have a setup button in a spreadsheet that opens another spreadsheet and copies data across. But at the end of the process I need to run a function in the other spreadsheet. How do I call this function in the other spreadsheet from the process code?

I'm guessing that I am close with the code below but I'm not sure how to finish it off.

With Workbooks(RRresultsWorkbookName)
.VBProject.VBComponents
End With

Does anybody have any ideas?
Andrew

Andrew Chamberlain
National Grid Transco
 
Hi Andrew,

You should be able to do it with Application.Run ..
Code:
[blue]Application.Run "[i]WorkBook!Procedure[/i]"[/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top