Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default old makro (excel 95) should work with vba-modules

hi ng,

i had some old makros (excel 95) which are should also work on excel xp.
how i could run functions and procdures written in vba from a old excel
makro.

when i work like that

= .... (old makro command)
= ....
= new_function_written_in_vba()
= ... (old makro command)

it didn't work. what's wrong?

thanks
michael


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default old makro (excel 95) should work with vba-modules

It looks like you're trying to call a VBA sub from an Excel 4 macro sheet.
If so, you seem to be doing it right. This worked for me:

In an Excel 4 macro sheet:

RunThis
=CallVBfromXL4()
=RETURN()

And in a VB module in the SAME workbook:

Sub CallVBfromXL4()
MsgBox "call worked!"
End Sub


--
Jim Rech
Excel MVP
"Michael Gerstel" wrote in message
...
| hi ng,
|
| i had some old makros (excel 95) which are should also work on excel xp.
| how i could run functions and procdures written in vba from a old excel
| makro.
|
| when i work like that
|
| = .... (old makro command)
| = ....
| = new_function_written_in_vba()
| = ... (old makro command)
|
| it didn't work. what's wrong?
|
| thanks
| michael
|
|


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
Excel makro hatası (Bul değiştir yanlış çalışıyor ) Excel Makroları Excel Discussion (Misc queries) 0 January 5th 08 07:14 AM
Start Excel inside MSaccess with a makro Lars[_2_] Setting up and Configuration of Excel 0 March 3rd 07 01:40 PM
Makro in excel Ted Excel Worksheet Functions 6 June 28th 06 02:06 PM
Excel Makro Language (Excel 4.0) Tutorial? Maria (of Excel 4.0) Excel Discussion (Misc queries) 3 August 12th 05 12:26 PM
Excel-Makro for automatically generated protocol out of todo-list Alexander Schaab Excel Programming 0 May 19th 04 02:51 PM


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