#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Format help needed?

First off this is probably written out more than it needs to be, having
trouble trying to shorten the question. Sorry.
I think this is a 2 part question. I have a document thats formated 2 ways.
one is in the view code area. 1 is in the cell. they work great. But i'm
finding a few challenges i need to fix.
Here is what i have in the view code.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 1 Then
If IsEmpty(Target) Then Target.Value = Date
End If
If Target.Column = 3 Then
If IsEmpty(Target) Then Target.Value = Time
End If
If Target.Column = 4 Then
If IsEmpty(Target) Then Target.Value = Time
End If
End Sub

Every time the cells that are formatted are highlighted by me using the
arrow buttons the time shows. I then i need to clear content to remove it.
I've tried the double click macro and both colunms show the same time.
The second part of the question is.

This is what i have in the cells.
=D3-C3 + (D3<C3)

Example of how it looks.
A B C D
E F G
2 DATE ACCT # ARR CLR TOTAL RPT NOTES
3
4 11/1/08 UE 00:23 00:42 00:19 N/A CLR
5 11/1/08 LOJH 01:03 01:10 00:07 N/A
6 00:00


I want to keep this. But i need D6 to be able to subtract from C5 and the
total in E6? The info written isn't always a one liner sometimes several
lines in the notes.
Hope this helped some.
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
date format help needed please Mominator Excel Discussion (Misc queries) 2 August 16th 08 08:40 PM
Time format help needed Dan W. Excel Worksheet Functions 19 March 6th 08 09:08 AM
Format using VBA not activating when needed RobN[_2_] Excel Discussion (Misc queries) 4 February 22nd 08 09:55 PM
IF / Else Format help needed Paul B. Excel Worksheet Functions 5 January 5th 06 06:37 PM
Help needed with date format [email protected] Excel Discussion (Misc queries) 1 August 29th 05 09:11 AM


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