Showing posts with label vba. Show all posts
Showing posts with label vba. Show all posts

November 06, 2010

more on vba problems in excel for mac 2011

there are problems related to vba being found after i installed excel for mac 2011 on my machine. not 100% excel coded in excel for windows 2007/2010 with common features (i.e. not include active-x or ribbon change) is accepted in excel for mac.

there’s a bug in instr function which makes excel for mac out of memory. when you use an if function & one of its criteria is based on result of instr function, it fails. the code is like below:

if instr(1, cells(x,y), zzzz, 1) = 0 and cells(a,b) = “ccc” 
  …

end if

another scene is if the cells are filled with date, the date format is affected & overridden by mac os x language setting. vba cannot detect those fields either or make excel out of memory.

and when you make changes in excel for mac, digital cert included in the spreadsheet is lost & you need to mount it back in windows version again before you can make the code live again.

May 14, 2008

good news for vba

next office for mac (maybe office 2012) will get back vba!

too many people learnt vb 6 in last decade with effort by ms. and vba is very similar to vb 6 which makes people stick around for a period of time. and it is much harder to change a programming language than changing gui for windows.

many people (including those south asians focus on cutting cost in my workplace) want to replace ms office with openoffice but they forget the fact. it is quite hard to do so when vba is still cool and easy to learn.

update on may 25: not just me says open source is absolutely good!

January 26, 2008

vba

from this and this, microsoft (ms) is not dropping visual basic for applications (vba) yet.

even vba has some drawbacks like outdated (based on vb 6) and security issue, staying alive is good for many people as many macros (from word, excel, access to other programs) are written on it (not just me feeling happy, but also company colleagues).

but the move from ms still make many worrying. first is discontinuing support to other non-ms programs. and it's not available for latest office for mac '08 (that may stop people transferring from pc to mac!). the important is they are pushing people to use visual studio tools for office (vsto). the latest one needs you to use visual studio '08 pro or team system.

i do think vba will be faded out just like visual foxpro. but seems that many are still using vba and not many will buy a full set of visual studio just for office macros, the future of it is still a bit long (like win xp now or win 98 in the old days)

July 24, 2007

so damned clever excel 2007

finally finds out why my vba is ok in excel 2003 but not in 2007. when a field format is set already, and you use vba to set the same format again, excel terminates. but this does not happen in 2003. cool? thx microsoft.

April 29, 2007

bug on excel 2007 macro?

below codes (simplified a bit) are ok run in excel 2003 but not in 2007, why?

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Cells(Target.Row, 7) = Cells(Target.Row, 2) * Cells(Target.Row, 4)
End Sub


run-time error -2147417848(80010108) is prompted (Method '_Default' of object '_Range' failed) and closed.