Access Violation at Address 00432893

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
catander12
Newbie
Posts: 2
Joined: Wed Nov 01, 2017 2:15 pm

Access Violation at Address 00432893

Post by catander12 » Wed Nov 01, 2017 2:21 pm

When I try to run a macro with the XLGetCell command I get the Access Violation at Address 00432893 in module 'mssched.exe'. Read if address FFFFFFF0.
I have no idea how to fix this

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Access Violation at Address 00432893

Post by Marcus Tettmar » Wed Nov 01, 2017 3:20 pm

Does XLOpen work - does it return a valid reference? Does the sheet name exist? Is the row and column reference correct? Can you share your code?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

catander12
Newbie
Posts: 2
Joined: Wed Nov 01, 2017 2:15 pm

Re: Access Violation at Address 00432893

Post by catander12 » Wed Nov 01, 2017 6:14 pm

I tried with a non-Read only version too

Code: Select all

XLOpen>\\SERVER01\RedirectedFolders\JDimarco\Desktop\Customer Deposits Validation.xlsx,1,depos


let>k=12
repeat>k
Wait>2.0
SetFocus>Customer Deposits Validation [Read Only] - Excel
  WaitWindowFocused>Customer Deposits Validation [Read Only] - Excel
  XLGetCell>depos,pvt DEPOSIT PAYMENTS workpaper,k,C,name

  IECreate>sps
  IENavigate>sps,https://motw.stoneprofits.com/vSalesHome.aspx,
  


  SetFocus>SPS - Sales Home - Internet Explorer
   WaitWindowFocused>SPS - Sales Home - Internet Explorer
   
   




let>k=k+1
Until>k=262

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Access Violation at Address 00432893

Post by Marcus Tettmar » Thu Nov 02, 2017 10:35 am

I don't see any value set for "C". Perhaps you are hardcoding this and don't realise this needs to be numeric. Change "C" to 3. C is column 3. So change your XLGetCell to:

XLGetCell>depos,pvt DEPOSIT PAYMENTS workpaper,k,3,name
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts