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: 17
Default Issue with creating a specific macro where two conditions exis

Herb thanks for the tip on the select case statement that worked out
perfectly now the only trouble I am having is protecting the other named
ranges. I tried to create a macro where it unlocked the range for only one
specific range name as defined by the button that is pushed but for some
reason the code error says I can't set the locked property=false. Is there
another way to do this or is their an adjustment I can make to the code I
have.

" wrote:

Hi Brian,

I would suggest taking a look at the Select Case Statement. It executes
one of several groups of statements, depending on the value of an
expression.

I would also suggest naming the ranges you would like to have each user
access with their name and them protect all other ranges or hide the
contents (by changing the color of the cell text) so that only the
person whose name is assigned to that range will be able to access it.
Hope that helps!


BrianMo wrote:
I am trying to create a macro where apon clicking a commandbutton in a user
form assigned to a specific defintion it will go directly to a specific cell
within a specific range. For example if the user named Brian Monaghan clicks
on the button for the definiton of analytics I want him to be taken to the
Analytics cell for the range assigned the name of "Brian_Monaghan" and not be
able to click on any other range in the worksheet titled
Employee_Tasks_Tracker_MOCK3. After I do that do I need to create a nested
loop to have this done for every single employee or do I just have to
manually enter all of them in there. I apologize if this question is
confusing I am a novice at Macros and am having to learn on the fly.



 
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
If 2 conditions exist in a range of cells Neophyte New Users to Excel 3 August 20th 08 11:47 AM
How do I return a unique count where conditions exist? Cher Excel Worksheet Functions 4 June 20th 08 06:00 PM
Copy Worksheet to a new Workbook creating if it doesn't exist and add more Worksheets if it does exist [email protected] Excel Programming 4 June 18th 06 06:08 PM
Count if 3 different conditions exist AnnaV Excel Discussion (Misc queries) 4 December 30th 05 06:57 PM
COUNTIF function when 2 conditions exist? Inquiring Minds Excel Worksheet Functions 1 November 29th 05 06:09 PM


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