Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel VBA programming assistance 2 PART CHALLENGE

Part 1

I have a spread sheet that I want to open protected (locked). However, I
want to unlock a specific range for data entry based on the day of the actual
system date.

For example if today is 11/5/08 then we want to unlock row 5, specifically
cells B5:I5.

I have experimented with several functions which return the desired results,
but I am not skilled enough to place them into a well written VBA subroutine.

Please note the following function examples which return the start and
ending cells of the desired range.

=ADDRESS(DAY(NOW()),2) this will display the start cell of the range (B5) and
=ADDRESS(DAY(NOW()),9) will display the last cell in the range (I5).

If anyone could assist with the writing of a subroutine that would select
the whole range, for example;

ADDRESS(DAY(NOW()),2).ADDRESS(DAY(NOW()),9).Select

That be the first step to my solution.

Part 2

Tying it all together...

Once the range can be selected based on the system date, through code, then
the next task is to either unlock that range for editing or better yet,
utilize the menu command Tools, Protection, Protect and Share Workbook.

So we can allow specific users based on their Active Directory Account to
edit a particular range.

However opening the sheet unlocked (protected) and saving it locked
(protected) would work in a pinch.

Thanks in advance for staying up at night working on this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel VBA programming assistance 2 PART CHALLENGE

In Part 2 the menu command was incorrect it reads menu command Tools,
Protection, Protect and Share Workbook and should read menu command Tools,
Protection, Allow Users to Edit Ranges

"Tymothé" wrote:

Part 1

I have a spread sheet that I want to open protected (locked). However, I
want to unlock a specific range for data entry based on the day of the actual
system date.

For example if today is 11/5/08 then we want to unlock row 5, specifically
cells B5:I5.

I have experimented with several functions which return the desired results,
but I am not skilled enough to place them into a well written VBA subroutine.

Please note the following function examples which return the start and
ending cells of the desired range.

=ADDRESS(DAY(NOW()),2) this will display the start cell of the range (B5) and
=ADDRESS(DAY(NOW()),9) will display the last cell in the range (I5).

If anyone could assist with the writing of a subroutine that would select
the whole range, for example;

ADDRESS(DAY(NOW()),2).ADDRESS(DAY(NOW()),9).Select

That be the first step to my solution.

Part 2

Tying it all together...

Once the range can be selected based on the system date, through code, then
the next task is to either unlock that range for editing or better yet,
utilize the menu command Tools, Protection, Protect and Share Workbook.

So we can allow specific users based on their Active Directory Account to
edit a particular range.

However opening the sheet unlocked (protected) and saving it locked
(protected) would work in a pinch.

Thanks in advance for staying up at night working on this.

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
Excel Programming - Formula Assistance James D. Sheehan Excel Discussion (Misc queries) 7 December 11th 07 02:54 PM
programming assistance biker man Excel Discussion (Misc queries) 3 July 26th 07 10:11 PM
Challenge of the day part 2 Khanjohn Excel Programming 3 April 19th 07 04:26 PM
Programming Assistance Gsurfdude Excel Programming 0 December 8th 05 08:46 PM
Using Excel Programming to bold part of the text Roger Bedford[_3_] Excel Programming 5 October 20th 04 06:12 PM


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