How to record a sheet change showing row column sheet name and date?

  • Thread starter Thread starter Simon Lloyd
  • Start date Start date
S

Simon Lloyd

Still struggling with this one, i keep getting variable not defined o
oWBAudit. If i do get this to run at all i get the error 424 an
oWBAudit = empty and Nothing=Nothing.

I have put the code in the this workbook module with the initia
statement If oWBaudit Is Nothing Then
Set oWBaudit = Workbooks.Open(FileName:="C:\Audit\Tracking.xls")
End If

at the top and the rest at the bottom of the code, any ideas?

Simo
 
if you

dim oWBAudit
(will set it as a variant)

to test if a variant is initialized you check
if myVariant = Empty or if IsEmpty(MyVariant)

dim oWBAudit as object
dim oWBAudit as workbook
(will dim it as a "general" object resp a workbook object

to test is an object is initialized you check
if myObject IS nothing

also note the distinction between "=" and "IS"
IS is used to compare objects.






keepITcool

< email : keepitcool chello nl (with @ and .) >
< homepage: http://members.chello.nl/keepitcool >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top