+ Reply to Thread
Results 1 to 2 of 2

converting VBA macro from win 7 to MAC

Hybrid View

  1. #1
    Registered User
    Join Date
    01-19-2019
    Location
    bangladesh
    MS-Off Ver
    2013
    Posts
    5

    converting VBA macro from win 7 to MAC

    Hi,
    I have created a VBA macro in windows 7 to populate PDF i works fine in windows 7.But when i run it in MAC operating system its gives error.the code is

    ' Write FDF file to disk
        If Len(vClient(1, 1)) Then sFileName = vClient(1, 1) Else sFileName = "FDF_DEMO"
        sFileName = ActiveWorkbook.Path & Application.PathSeparator & sFileName & ".fdf"
        lngFileNum = FreeFile
        Open sFileName For Output As lngFileNum
        Print #lngFileNum, sTmp
        Close #lngFileNum
        DoEvents
        
        ' Open FDF file as PDF
        ShellExecute vbNull, "open", sFileName, vbNull, vbNull, SW_NORMAL
        Exit Sub
    
    ErrorHandler:
        MsgBox "MakeFDF Error: " + Str(Err.Number) + " " + Err.Description + " " + Err.Source
    
    End Sub
    This code creates a fdf file in Mac operating system but gives error :

    MakePDF error: 53 file not found:
    shell32.dll VBAproject.

    someone help me please.

  2. #2
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: converting VBA macro from win 7 to MAC

    Cross-posted below

    https://www.mrexcel.com/forum/excel-...ml#post5248012
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

+ 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. converting a formula into a macro
    By mamachrissy1028 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-07-2015, 04:20 PM
  2. Converting a macro into a formula
    By TheGunslinger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2013, 04:13 PM
  3. Converting Actionplan into Macro
    By ColdDeath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2013, 04:26 PM
  4. Converting personal macro to Add in
    By Leon V (AW) in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2013, 11:35 AM
  5. Converting workbook with Macro to a template causes the Macro to stop working
    By Skeeta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 02:00 PM
  6. Best macro for converting currency
    By andybandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2006, 06:45 AM
  7. [SOLVED] converting Lotus 123 macro to Excell macro
    By mark h in forum Excel General
    Replies: 6
    Last Post: 07-11-2005, 09:05 AM

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