LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Running a macro in a predetermine range if not them msgBox

Ivan, Thank you so much!
There is only one other thing I would like for the macro to do and that is
to give a MsgBox when On Error GoTo 0. I can live with out that nicesity,
I'll be looking for possible example in this forum and in Google to see if I
can figure it out!

Thanks, that really helps.
K Brenner


"Ivan Raiminius" wrote:

Hi KBREnner,

you should add test if user is in "allowed" area into your code.

Something like:

on error resume next
If Not Intersect(activecell, Range("b5..b159")) Is Nothing Then
on error goto 0
'here add what you want to do if "allowed" area
end if
on error goto 0

regards,
Ivan


 
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
Create macro to calculate data range for a running chart James Lucero Excel Worksheet Functions 1 April 29th 08 04:27 PM
Running a macro if any data is entered in a range of cells Jonathan Excel Worksheet Functions 3 November 16th 05 08:38 PM
Eliminating Excel msgbox from popping up while macro is running. dpdutke Excel Programming 2 November 23rd 03 07:55 PM
Running a macro if msgbox is yes Todd Huttenstine[_2_] Excel Programming 2 November 16th 03 11:07 PM
Predetermine Worksheet to Start In mickeyblake Excel Programming 4 August 10th 03 11:40 AM


All times are GMT +1. The time now is 07:59 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"