Jump to content

Recommended Posts

Posted

Hi Guys

 

I've recorded a Macro in Excel 2007 and created a report for Persitent Absence to be used with SIMs. Was quite happy with it, until Excel 2003 users tried to use it. It requires a PA UDG to be set up.

 

now i get an error 438: object doesn't support this property or method when it tries to run in Excel 2003

 

I cannot figure out which part of the macro excel 2003 doesn't like. Any Excel Gurus out there willing to give me some help.?

 

anyone. . . . anyone.... bueller...

IBSS - PA Analysis - spreadsheet.zip

Posted
Thanks in advance for any help. Its bound to be a command that is new to 2007, but as i only record macros i really not sure whats new and whats not! :rolleyes:

 

Don't thank me just yet lol, I'll have a look at it for you. When you get the error, which line does it highlight in the VBA code when you press debug? Should help me find the problem quicker if you know

Posted
It doesn't give me an option to debug unfortuntely! It stops when it highlights cell l3 though as that is where the selection is when it crashes.
Posted

mine fails on this line

 

Workbooks.OpenText Filename:=ThePath + "\ReportData.txt", DataType:=xlDelimited, Tab:=True, FieldInfo:=ColumnArray

 

obviously I do not have a copy of the reportdata.txt file

Posted

No you may not. You would need to be on a SIMS client station. The best way to see it working would be to import the rptdef into SIMS, Create a User Defined Group called PA, add a couple of kids then run it.

 

:D

Posted (edited)
eek , i afraid that has not worked. Still same issue Edited by vikpaw
Data Protection - screenshot revealed student names
Posted

Argh OK that's that theory out then! OK let's enable debugging to see if we can get an idea what's causing the problem.

 

Open up the template, scroll down to the routine called "Sub Auto_Open()" and the next line says "On Error GoTo ErrorHandler", place a sinlge quote (') at the start of that line to comment it out, save the template and try running the eport again.

 

This time when you get the error you should have a 'Debug' option, which will take you back in to the code and highlight the problematic line, post a screenie here when you get there please :)

Posted
Excel 2003 will not support .ThemeColor as a font property no doubt. Comment the lines out by putting an apostrophe before it. This is setting a colour for the font in that range.
Posted

Thanks for eveyone's help!! I've removed all the lines that Excel 2003 did not like and now have 1/2 a macro that works. All i need to do is record the rest and tag it on.

 

Brilliant!! As for "pulling" the image, there was no need to. If you are as familiar with SIMS as I am, you would have noticed that the names are that from the Capita Training Database, Green Abbey!

 

Our friend Stan Acton is top of the list :p :p :p :p :p :p :p :p :p :p

Posted
Excel 2003 will not support .ThemeColor as a font property no doubt. Comment the lines out by putting an apostrophe before it. This is setting a colour for the font in that range.

 

Chris is right, you need to go through and comment out any lines that start ".Theme", that should fix your problem (you comment lines out with the single quote as before with the "On Error" statement).

 

If it still won't work after that, post what you have so far and I'll have another look for you

 

EDIT:

Just a few seconds too late lol. Oh well, the offer still stands if you need any more help :)

  • Thanks 1
Posted
the names are that from the Capita Training Database, Green Abbey!

 

Our friend Stan Acton is top of the list :p :p :p :p :p :p :p :p :p :p

 

I take it you receive your support from SMIS in Smethwick then?

Posted
No, we are the Support Unit for SIMS in Worcestershire.

 

Oh I see, I forget how far the Midlands stretches when I'm in my bubble in Sandwell lol.

Posted
Oh I see, I forget how far the Midlands stretches when I'm in my bubble in Sandwell lol.

 

hehe, you are so far north, you must have a nosebleed . .:getmecoat:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...