LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Is it Possible Q

Sorry John, Had to go out.. for a while.
should of mentioned the sub goes in the **workbook** code section (not for
the worksheet)

the part:
Sheets("Access Log").Visible = xlVeryHidden ' *** Hides the Access Log
worksheet
this means the sheet can not be unhidden from the menu's.
Instead go to MS visual basic editor, click the worksheet on the right to
select it.
press F4(to open the properties window), at the bottom you will see
visibility.
you can make it either, xlVisible, xlHidden or xlVeryHidden.
the later stops everyday users from viewing/changing the sheet.

Change this line of code, to the format you would like displayed:
Sheets("Access Log").Cells(x + 2, 2) = Format(Now(), "ddd - dd/mm/yy at
hh:mm:ss ampm")
' **** The value of function Now()i.e. todays date/time formated to
everything within the quotes.

Hope this Helps. Andrew


"John" wrote in message
...
| Got it I was modifying the same code I had in a different worksheet ...
| doooh
|
| "John" wrote in message
| ...
| Andrew got your code working fully and must say its a neat bit of code.
| Only one thing I'm trying to change the date format and am having no
luck,
| it visually returns the following
|
| Sun-25/Sep/0505: 43: 37PM
|
| How can I get it to look like this-
|
| Sun - 25/09/05 at 05:43:37 pm
|
| I've tried changing the code but it doesn't seem to matter, it still
comes
| out like the first one




 
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



All times are GMT +1. The time now is 01:19 AM.

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"