Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Shared Workbook - Hiding rows as per Username

Hi,

How can i hide certain rows for certain users & make visible only rows
belonging to certain Users (having their names in cells) using VBA, whenever
the users open the Shared Workbook?

eg.
If application.Username="sheikh" then
with worksheets("Sheet1")
..range("c1").visible= true ' C1 contains my name as "Eijaz"
..range("c12").visible= false ' C12 contains other users name say "Jack"
..range("c18").visible= false ' C18 contains other users name say "Jill"
end with
else if application.Username="jackv" then
with worksheets("Sheet1")
..range("c12").visible= true' C12 contains other users name say as "Jack"
..range("c1").visible= false ' C1 contains my name "Eijaz"
..range("c18").visible= false ' C18 contains other users name say "Jill"
end with
else if application.Username="jillm" then
with worksheets("Sheet1")
..range("c18").visible= true' C18 contains other users name say as "Jill"
..range("c1").visible= false ' C1 contains my name "Eijaz"
..range("c12").visible= false ' C12 contains other users name say "Jack"
end with
end if
........... does not seem to work as i think when i open Tools Share
Workbook all the 3 names are listed.
Any help would really be appreciated!

Rgds,

Eijaz



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
shared workbook - shared workbook options grayed out Edward Letendre Excel Discussion (Misc queries) 0 March 3rd 10 10:47 PM
Printing viewing a shared workbook on a shared drive aloomba Excel Discussion (Misc queries) 0 April 13th 07 02:52 PM
shared workbook appending/merging rows of data from several worksh Smilingout_loud Excel Discussion (Misc queries) 1 December 26th 06 07:52 PM
Excel shared workbook copies rows by itself greg Excel Worksheet Functions 0 May 27th 06 04:04 AM
Prevent Username Accessing Workbook Martin Whitehead Setting up and Configuration of Excel 1 April 2nd 06 12:44 PM


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