Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling a macro from ActiveX Script.

I have a excel file which I use as a source file for my data import in sql
sever.
One column of this excel file has all email ids and all are as hyperlinks. I
need to remove these hyperlinks and just import the email ids to the
database.

I have a macro which removes the hyperlinks and just keep email address. I
need to run this macro programatically with out user interference. So I need
to have this macro separately and call this on which ever excel file becomes
my source file.

Any way to do this in ActiveXscript.

Thanks and Regards,
Karunakaran
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Calling a macro from ActiveX Script.

Depending on the scope and definition of 'activex script'..

You can access a macro from 'outside' of the XL workbook containing it
with the Application.Run method. You can even access it with a similar
technique from outside of XL (assuming you are automating XL). In any
case, you should also parameterize the macro so that it accepts as an
argument the range it should operate on.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
I have a excel file which I use as a source file for my data import in sql
sever.
One column of this excel file has all email ids and all are as hyperlinks. I
need to remove these hyperlinks and just import the email ids to the
database.

I have a macro which removes the hyperlinks and just keep email address. I
need to run this macro programatically with out user interference. So I need
to have this macro separately and call this on which ever excel file becomes
my source file.

Any way to do this in ActiveXscript.

Thanks and Regards,
Karunakaran

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
Macro Script help Joe Clueless Excel Worksheet Functions 4 January 24th 10 05:32 PM
VB script/macro help - please !! Anthony Excel Discussion (Misc queries) 2 July 10th 05 07:58 PM
VBA script ActiveX .ocx embedded Mary Excel Programming 12 March 1st 05 02:41 PM
Macro or script JIM80215 Excel Programming 1 November 16th 03 10:02 PM


All times are GMT +1. The time now is 01:03 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"