Quantcast
Channel: Office 365 for Mac - Recent Threads
Viewing all articles
Browse latest Browse all 2336

My Excel VBA Macro created on Windows 8.1 (Office 2010) PC won't work on Mac

$
0
0

I am considering buying a Mac Book Pro but keeping my Windows PC and using Office 365 on both. However the Macro I created for my PC works a treat to generate reports that includes graphs and charts but it won't run on my friends Mac running Office 2011. The problem occurs when trying to use the statement to convert Text to Columns to parse data (to separate a date from a time..... e.g. 10/12/2014 07:30:30 which is an import of raw data) but in the Mac Office version the Macro stops at this line which is as follows

     Set rng = ActiveSheet.Range("b2:b" & totalrows)

rng.Select
Selection.TextToColumns Destination:=Range("b2"), DataType:=xlFixedWidth, fieldinfo:=Array(Array(0, 1), Array(11, 1)), trailingminusnumbers:=True

Has anybody come across this problem and found a fix? 


Viewing all articles
Browse latest Browse all 2336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>