Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JoP JoP is offline
external usenet poster
 
Posts: 2
Default Macro Compatibility between 03 and 07

Hi,
I have created files in excel 2003 with VBA and Macro's
When user with excel 07 run those macro's the macro is renamed, it get's a
filename and path to the local drive ofm the user.
So the next user can't excute that macro anu longer.
I saw this also happening with add-inn like khalix for excel.

Does anyone know how to prevent this from happening in an other way than to
just forcing everyone to keep files in the same 03 format?

Thanks, Jop
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Macro Compatibility between 03 and 07

I've not seen this problem. How are you calling the macros and what are the
names of the modules and procedures. You may need to post some code.
--
HTH,

Barb Reinhardt



"jop" wrote:

Hi,
I have created files in excel 2003 with VBA and Macro's
When user with excel 07 run those macro's the macro is renamed, it get's a
filename and path to the local drive ofm the user.
So the next user can't excute that macro anu longer.
I saw this also happening with add-inn like khalix for excel.

Does anyone know how to prevent this from happening in an other way than to
just forcing everyone to keep files in the same 03 format?

Thanks, Jop

  #3   Report Post  
Posted to microsoft.public.excel.programming
Jop Jop is offline
external usenet poster
 
Posts: 1
Default Macro Compatibility 03 / 07 (some extra info)

thanks for looking at this.

The Macro is called by a click on a button

It is a very simple recorded Macro:

Sub ExportNewOppsSum()
'
' ExportNewOppsSum Macro
' Macro recorded 4/6/2007 by jochemp
'
'
Sheets("Opps Summary").Visible = True
Sheets("Opps Summary").Select
Sheets("Opps Summary").Copy Befo=Sheets(10)
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Opps Summary").Select
ActiveWindow.SelectedSheets.Visible = False
Sheets("Opps Summary (2)").Select
Application.CutCopyMode = False
Sheets("Opps Summary (2)").Move

Range("C2").Select
End Sub

When the Macro has run the name changes to:
Book1!ExportNewOppsSum

And some other macro's that did not run are also renamed and get the Book1! reference too.

Something similar happens when using Khalix for Excel in 07 and 03.
Here is an example from Khalix (an add-inn for excel)

This is how the formula was as I wrote it in 2003
=IF($B103="New Site",0,KFCELL(+$A115,+C$6,+$B103,+$F$1,+$D$1,+$F$ 2,+$D$2))

This is what it turned in to:
=IF($B103="New Site",0,'C:\Program Files\Khalix\KLXPROD\software\khalix.xla'!KFCELL(+ $A115,+C$6,+$B103,+$F$1,+$D$1,+$F$2,+$D$2))


hope this sheds some lite

tx, Jop




Barb Reinhardt wrote:

I have not seen this problem.
04-Mar-10

I have not seen this problem. How are you calling the macros and what are the
names of the modules and procedures. You may need to post some code.
--
HTH,

Barb Reinhardt



"jop" wrote:

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
What's New for Developers in SharePoint 2010 Object Model?
http://www.eggheadcafe.com/tutorials...evelopers.aspx
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
Testing Reverse Compatibility and Compatibility in General dim Excel Discussion (Misc queries) 4 January 8th 08 01:02 PM
Macro Compatibility ARCUser Excel Programming 0 April 30th 07 09:00 PM
Macro compatibility between excel XP and 97 darryl26 Excel Programming 0 July 30th 04 06:55 PM
Macro Compatibility M.Vance Excel Programming 1 August 29th 03 07:14 PM


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