LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default skip some code

I know it's heresy to branch. So how do I handle this situation? I have
some code taking a date from a cell and doing a MONTH command to
extract the month and process based on that month number. Sometimes,
the cell that normally contains the date contains text like "na" or
"?". Then I get a type mismatch error on this line:

dteColCode = rngColCode.Value

How can I instruct it to skip down to the line "Next rCell" if an error
occurs on this line?
Thanks for your help.

 
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
Can I Skip a row in my formula? RaY Excel Worksheet Functions 3 August 19th 08 01:12 PM
using IF to skip Julie Excel Worksheet Functions 4 March 14th 08 10:21 PM
Excel VBA macro - need to edit code to skip a year adun3434 Excel Programming 0 April 1st 04 09:14 PM
skip code monika Excel Programming 1 February 26th 04 02:33 AM
Excel skip some lines of VBA code Alex[_7_] Excel Programming 1 August 28th 03 12:18 PM


All times are GMT +1. The time now is 03:58 PM.

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

About Us

"It's about Microsoft Excel"