Results 1 to 8 of 8

Portable VBA to support OSX and Windows

Threaded View

smpita Portable VBA to support OSX... 11-03-2017, 02:38 PM
xlnitwit Re: Portable VBA to support... 11-03-2017, 07:25 PM
smpita Re: Portable VBA to support... 11-03-2017, 07:37 PM
xlnitwit Re: Portable VBA to support... 11-03-2017, 07:46 PM
smpita Re: Portable VBA to support... 11-03-2017, 07:56 PM
LJMetzger Re: Portable VBA to support... 11-03-2017, 08:10 PM
smpita Re: Portable VBA to support... 11-04-2017, 01:21 PM
smpita Re: Portable VBA to support... 11-06-2017, 03:55 PM
  1. #1
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Portable VBA to support OSX and Windows

    I have a healthy sized macro (>500k as xlam) that was written against Excel 2010 for Windows. The macro examines ActiveSheet, formats it differently depending on the type of report, and saves it to a SAMBA network share, mapped as a drive letter and accessed through the drive path (as opposed to UNC pathing). It is also responsible for reading in and writing some simple lists that are delimitated with CRLF, also stored in that SAMBA share.

    Making the macro work on my OSX laptop would be helpful but is not essential, so I am trying to evaluate the considerations that need to be made for my code to be portable between platforms. Below is a list of considerations I am aware of. If you have any tips to address these concerns or know of concerns I haven't thought of, please chime in!

    1) Pathing: Maybe set a PATH_DELIM global constant in my bootstrapping that tells it which way to flip the "/"?

    2) Newline termination: Since Windows and OSX will both be reading/writing to the same ASCII TXT files, I think I need to pick a convention and use vbCrLf specifically rather than vbNewLine even if Split(sTextReadIn, vbNewLine) will see CRLF and split anyways. This is to maintain readability of the TXT files in Window's Notepad.

    3) Anything else? Are there Windows only functions that don't appear in OSX VBA? Do any common functions behave differently between the two platforms?

    Thank you.
    Last edited by smpita; 11-03-2017 at 02:41 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Opening a text file from a Windows Portable Device
    By aremarti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2016, 12:33 PM
  2. Class does not support Automation or does not support expected interface
    By ccs_1981 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2015, 05:57 AM
  3. Windows Technical Support - Scam?
    By MarvinP in forum The Water Cooler
    Replies: 22
    Last Post: 12-25-2014, 10:32 PM
  4. UDF not portable
    By Pilule in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2014, 10:02 PM
  5. runtime 430 error- Class does not support Automation or does not support...
    By kimcole5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2012, 01:27 PM
  6. Portable Hyperlinks?
    By BdgBill in forum Excel General
    Replies: 1
    Last Post: 05-10-2007, 04:38 PM
  7. [SOLVED] portable code...
    By mark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2005, 04: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