+ Reply to Thread
Results 1 to 2 of 2

Opening A Word file both PC and Mac

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2014
    Posts
    7

    Question Opening A Word file both PC and Mac

    First off just wanted to thank this forum for existing. Two months ago I was an excel newbie and now been doing some pretty complex things from reading up on here!

    I have an excel sheet which calculates a bunch of variables for quoting purposes, and then the macro auto-generates a word document with changing values which works perfectly. The issue I ran into was getting multiple images in the header so it looks pretty so I decided to open a preset word template file versus creating a new one each time. This worked perfectly as I'd hope on windows.

    Dim objword
    Dim objDoc
    Dim objSelection
    Set objword = CreateObject("Word.Application")
    Set objDoc = objword.Documents.Open("C:\QuoteTemplate\QuoteTemplate.docx")
    objword.Visible = True


    However a coworker with a Mac tried to use it and has some problems. I first dealt with the ActiveX issues by using form controls and informing him to use the manual macro run via Developer > Macros which bypasses the button, but the issue is that obviously Macs do not have a C: drive. Does anyone know how I could do this? I was thinking about having the template file on an external drive/usb stick but even then I think the naming process is different.

    TL;DR I need a way of opening a preset word file on both windows and mac to write to. Is there any directory that looks the same from both operating systems. Or is there a way of looking just in the same folder which the excel file is contained versus having to start with the drives. So that no matter what folder your excel file is in, as long as the word template is in the same one it will work (I wouldn't think so as computers generally don't think that way but one can hope)

    Let me know,

    Smooth

  2. #2
    Registered User
    Join Date
    03-04-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2014
    Posts
    7

    Re: Opening A Word file both PC and Mac

    Any ideas?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. File format is not valid - opening word file by vba
    By matsuchika in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2013, 01:36 PM
  2. Opening Existing Word file from Excel VBA
    By rbyrd023 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-10-2010, 02:09 PM
  3. Replies: 4
    Last Post: 03-17-2006, 09:55 AM
  4. Opening an existing Word File from within Excel
    By AJO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2006, 03:15 PM
  5. Opening a csv file in word
    By saybut in forum Excel General
    Replies: 1
    Last Post: 09-19-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1