Workbooks.Open (FullFolder)
Workbooks(FileName).Activate
ActiveWorkbook.Worksheets("Blank").Activate
Application.Run "'" & Activeworkbook.Name & "'!ShowForm"

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
On Jan 30, 1:55 pm, "Tim Zych" <tzych@NOSp@mE@RTHLINKDOTNET> wrote:
> Your pseudo code is on target, but I'd tweak it a bit:
>
[quoted text clipped - 44 lines]
>
> - Show quoted text -
Thanks Tim.. But i doubt something..
One " is missing in the begining.. How do we insert a Double Quote?
Application.Run "'" & Replace(FileName,"'","''") & "'!ShowForm" ???
Thanks
Joe
brzak - 30 Jan 2008 11:43 GMT
I had a similar question the otehr day, see:
http://groups.google.com/group/microsoft.public.excel.programming/browse_thread/
thread/da75e274fddca635/b9da5722fdb3af0a#b9da5722fdb3af0a
and I got a similar response to the above, I ended up using this in my
procedure:
Sub CallProcedureIn(WkBook as String, Procedure as STring)
Application.Run "'" & WkBook & "'!" & Procedure
End Sub
so taht's assuming you know / can get the workbook name, and you know
the Procedure name. You could even get the names of all the available
procedures, but then you'll be heading towards recreating the vba /
excel macro button...
> Workbooks.Open (FullFolder)
> Workbooks(FileName).Activate
[quoted text clipped - 68 lines]
> Thanks
> Joe
Double quote?
It's a single quote + FileName + single quote + rest of stuff. Try it out.
It works.
---------------------------------
Thanks Tim.. But i doubt something..
One " is missing in the begining.. How do we insert a Double Quote?
Application.Run "'" & Replace(FileName,"'","''") & "'!ShowForm" ???
Thanks
Joe
Joe - 31 Jan 2008 12:57 GMT
> Double quote?
>
[quoted text clipped - 10 lines]
> Thanks
> Joe
Thanks everyone..
I find the code of Bob most easy for me... Yes Bob, it definitely
helped :)
Thanks again
Joe