Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default run vba code dynamically of another add-in workbook


i need to run vba code of my another add-in through my current add-in
please help through vba...

also posted here..
http://www.ozgrid.com/forum/showthread.php?t=40918

Basically i need to call 'Sub TestMacro' of file-2 from file-1.


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
View this thread: http://www.excelforum.com/showthread...hreadid=476207

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default run vba code dynamically of another add-in workbook

Another workbook

Application.Run "book2.xls!test_msgbox"

with spaces in name

Application.Run "'another book2.xls'!test_msgbox"

.... with parameters

Application.Run "book2.xls!test_msgbox", 4, 8


An add-in is just a workbook, so replace xxls with xla

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ilyaskazi" wrote
in message ...

i need to run vba code of my another add-in through my current add-in
please help through vba...

also posted here..
http://www.ozgrid.com/forum/showthread.php?t=40918

Basically i need to call 'Sub TestMacro' of file-2 from file-1.


--
ilyaskazi
------------------------------------------------------------------------
ilyaskazi's Profile:

http://www.excelforum.com/member.php...o&userid=23969
View this thread: http://www.excelforum.com/showthread...hreadid=476207



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default run vba code dynamically of another add-in workbook


Thankyou Bob for your kind help..

It is working. Great!!

--
ilyaskaz
-----------------------------------------------------------------------
ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396
View this thread: http://www.excelforum.com/showthread.php?threadid=47620

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
Dynamically Reference Offline Workbook/worksheet PatK Excel Discussion (Misc queries) 0 September 7th 07 10:20 PM
Dynamically adding code Martin Walke Excel Programming 2 October 21st 04 12:18 PM
How to use macro to dynamically add the VBA code and data together OpenFile Excel Programming 1 July 6th 04 07:55 AM
Dynamically Adding Code to Buttons on an existing UserForm Peter Street Excel Programming 2 September 29th 03 09:54 AM
How to code event for dynamically generated checkboxes Chong Moua Excel Programming 0 July 9th 03 08:18 PM


All times are GMT +1. The time now is 02:33 PM.

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

About Us

"It's about Microsoft Excel"