Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default run code in other workbook

Hi

I can open a second workbook in code but can not manage to run a proc within
the second book (from the first book). I've made second book code Public.
Something like workbooks("answers.xls").pastry doesn't work (where pastry is
Public proc). Does this make sense?

How to please?

Thanks!
Graeme


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default run code in other workbook

Try

Application.Run "answers!pastry"

"Saladin" wrote:

Hi

I can open a second workbook in code but can not manage to run a proc within
the second book (from the first book). I've made second book code Public.
Something like workbooks("answers.xls").pastry doesn't work (where pastry is
Public proc). Does this make sense?

How to please?

Thanks!
Graeme



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default run code in other workbook

I think that should read...

Application.Run "answers.xls!Pastry"

I think you need the file extension....
OJ

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default run code in other workbook

thanks both. that's great!
"OJ" wrote in message
ups.com...
I think that should read...

Application.Run "answers.xls!Pastry"

I think you need the file extension....
OJ



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
workbook code Franky Excel Worksheet Functions 2 April 20th 06 08:15 PM
copy and paste using code from workbook to workbook bigdaddy3 Excel Discussion (Misc queries) 2 September 14th 05 11:06 AM
Reference code in another workbook from a calling workbook Datasort Excel Programming 1 January 4th 05 01:13 AM
VBA code to delete VBA code in another Workbook Chip Pearson Excel Programming 0 September 15th 03 03:54 PM
Get code from a corrupted workbook Dave[_15_] Excel Programming 7 September 8th 03 05:44 AM


All times are GMT +1. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"