Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel - how to prevent new office version from upgrading word object reference

Hi all...

I have an excel spreadsheet, with Macro's which control Microsoft Word.
They were written using Excel and Word from Office 2000 (Word 9.0).

This is a shared spreadsheet, so some other users have Office XP. After
they open the spreadsheet and make changes, the referece to the
Microsoft Word Objects in the VBA editor is upgraded to V11.

When the spreadsheet is then opened in Excel 2000, errors messages
popup. I then have to remove the "Missing Word 11.0" reference and
re-check the Word9.0 reference.

Is there a way to prevent this from happening?

Thanks in advance. Matt.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Excel - how to prevent new office version from upgrading word object reference

On 4 Jul 2006 09:49:40 -0700, Zoner wrote:

Hi all...

I have an excel spreadsheet, with Macro's which control Microsoft Word.
They were written using Excel and Word from Office 2000 (Word 9.0).


[...]

Remove any Word reference from VBA project and use late binding.

--
PL
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Excel - how to prevent new office version from upgrading word obje

Remove the references and use this code to create your word application
object...

dim appWord as object

set appWord = createobject('Word.Application")

--
HTH...

Jim Thomlinson


"Zoner" wrote:

Hi all...

I have an excel spreadsheet, with Macro's which control Microsoft Word.
They were written using Excel and Word from Office 2000 (Word 9.0).

This is a shared spreadsheet, so some other users have Office XP. After
they open the spreadsheet and make changes, the referece to the
Microsoft Word Objects in the VBA editor is upgraded to V11.

When the spreadsheet is then opened in Excel 2000, errors messages
popup. I then have to remove the "Missing Word 11.0" reference and
re-check the Word9.0 reference.

Is there a way to prevent this from happening?

Thanks in advance. Matt.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel - how to prevent new office version from upgrading word obje


Remove the references and use this code to create your word application
object...

dim appWord as object

set appWord = createobject('Word.Application")


Thanks!

I have this working for Word.Application but can not seem to use the
same method to replace:
Dim wRng As Word.Range
With:
Dim wRng As Object
Set wRng = CreateObject("Word.Range")

- I get an error on the Set wRng saying it can not create the object.

Should this work? I am also using Word.Table, so suspect I will get the
same error there.

Thanks again.

Matt

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
Any problem of migration for upgrading Office 2007 from Office 200 Eric Excel Discussion (Misc queries) 3 September 6th 07 04:22 PM
Upgrading Excel 2003 trial version, please help S. Huddleston Excel Discussion (Misc queries) 3 January 6th 07 09:15 PM
Word with embedded Excel object which has reference to addin Tom Chau Excel Discussion (Misc queries) 0 September 6th 06 02:25 AM
Make this paste_into_word code flexible to unknown office/word version 97? Gunnar Johansson[_3_] Excel Programming 1 December 11th 04 05:13 PM
Reference to Office 11.0 Object Library Steph[_3_] Excel Programming 1 September 29th 04 08:08 PM


All times are GMT +1. The time now is 10:35 AM.

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"