Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Programming a console application

Hi,

Is there a way to convert a VBA-macro in EXCEL to a separate console
application in VB which can be called and run on a particular excel
sheet.without having to open a different excel file every time copy paste a
macro and run again.

I am beginner in Visual Basic. How would I acheive this if i write a console
application in VB, it seems like EXCEL local objects and method are unknown
to VB compiler if I straight forwardly copy the macro. The second thing is
how do i open and EXCEL application program from my console application and
then open the related file and then run the code which do the formatting,
What libraries do i need to do a succesful compilation

Any help would be appreciated

Thanks
Bilal


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Programming a console application


-----Original Message-----
Hi,

Is there a way to convert a VBA-macro in EXCEL to a

separate console
application in VB which can be called and run on a

particular excel
sheet.without having to open a different excel file every

time copy paste a
macro and run again.

I am beginner in Visual Basic. How would I acheive this

if i write a console
application in VB, it seems like EXCEL local objects and

method are unknown
to VB compiler if I straight forwardly copy the macro.

The second thing is
how do i open and EXCEL application program from my

console application and
then open the related file and then run the code which do

the formatting,
What libraries do i need to do a succesful compilation

Any help would be appreciated

Thanks
Bilal


.
If I understand your question just put the macro into the

PERSONAL.xls workbook. Then it will be available for any
worksheet.

Thanks,

Greg
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
Programming dim Excel Discussion (Misc queries) 7 November 16th 07 11:56 AM
programming help biker man Excel Discussion (Misc queries) 2 July 22nd 07 11:54 PM
Arranging the VBA console windows Dallman Ross Excel Discussion (Misc queries) 2 October 26th 06 04:42 PM
Programming help BB Excel Discussion (Misc queries) 3 December 5th 05 01:09 AM
Programming IDE JS[_4_] Excel Programming 1 November 20th 03 09:11 AM


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