Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Ignore Error 1004

I want to ignore this error and NOT skip the code that makes the error!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Ignore Error 1004

before the code do

On Error Resume Next

after the code do

On Error goto 0

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
I want to ignore this error and NOT skip the code that makes the error!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Ignore Error 1004

Doesn't work!

"Tom Ogilvy" skrev:

before the code do

On Error Resume Next

after the code do

On Error goto 0

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
I want to ignore this error and NOT skip the code that makes the error!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Ignore Error 1004

to you have break on all error set in the VBE. If so change it to break on
unhandled errors.

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
Doesn't work!

"Tom Ogilvy" skrev:

before the code do

On Error Resume Next

after the code do

On Error goto 0

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
I want to ignore this error and NOT skip the code that makes the

error!





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Ignore Error 1004

It may ignore the error, but it can't ignore what caused the error. You
need to fix your code so it puts in a valid formula.

--
Regards,
Tom Ogilvy


"akyhne" wrote in message
...
It allready is!

the code is:
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,

Operator:= _
xlBetween, Formula1:=("=PLC_STROEMFORS" & TaelTrafoOp)
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With

... and it stops at
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,

Operator:= _
xlBetween, Formula1:=("=PLC_STROEMFORS" & TaelTrafoOp)

but it has to ignore this error and "make" this code anyway!!!

"Tom Ogilvy" skrev:

to you have break on all error set in the VBE. If so change it to break

on
unhandled errors.

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
Doesn't work!

"Tom Ogilvy" skrev:

before the code do

On Error Resume Next

after the code do

On Error goto 0

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
I want to ignore this error and NOT skip the code that makes the

error!










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Ignore Error 1004

It's not the above code that makes the error at the time I put the code in.
It's the reference: ("=PLC_STROEMFORS" & TaelTrafoOp) that has an error at
the time (exists though). The funny thing is that if I makes this validation
manual I just get an popup error that eksplains that the source at the moment
has an error but the change is accepted.

"Tom Ogilvy" skrev:

It may ignore the error, but it can't ignore what caused the error. You
need to fix your code so it puts in a valid formula.

--
Regards,
Tom Ogilvy


"akyhne" wrote in message
...
It allready is!

the code is:
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,

Operator:= _
xlBetween, Formula1:=("=PLC_STROEMFORS" & TaelTrafoOp)
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With

... and it stops at
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,

Operator:= _
xlBetween, Formula1:=("=PLC_STROEMFORS" & TaelTrafoOp)

but it has to ignore this error and "make" this code anyway!!!

"Tom Ogilvy" skrev:

to you have break on all error set in the VBE. If so change it to break

on
unhandled errors.

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
Doesn't work!

"Tom Ogilvy" skrev:

before the code do

On Error Resume Next

after the code do

On Error goto 0

--
Regards,
Tom Ogilvy

"akyhne" wrote in message
...
I want to ignore this error and NOT skip the code that makes the
error!









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Runtime error '1004' General ODBC error star_lucas New Users to Excel 0 August 29th 05 04:09 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
Error 1004 HELP woody334 Excel Programming 6 July 16th 04 04:03 PM
VBA error - run-time error '1004': Romanian37 Excel Programming 3 May 21st 04 03:25 PM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"