Help Anyone!!!!!!!

AcTiVation

New Member
Joined
Mar 4, 2002
Messages
8
I have several questions;
Question #1
Does anyone have a vba code which will enter a date in an adjacent cell when a value is entered in the cell beside it?

Question #2
Is it possible to have a dynamic range of data in different files copied into a single spread sheet as soon as the target spread sheet is opened, and then have the data that was pasted (dymnamic of course) sorted by date (high to low) which would be in say column "D"

Thanks in advanced,
regards,
ATV
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Went to the link you post, and entered pasted the code, it doesn't work. I entered a value in A1 and no date appeared in D1.

Any other suggestions?

Thanks in advanced.
ATV
 
Upvote 0
On the worksheet in question, right-click, click on view code. Paste the following code into the sheet class module:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Columns(1)) Is Nothing Then
    If Target.Offset(, 1).Value = Empty _
    And Target<> "" Then
    Target.Offset(, 1).Value = Date
    End If
End If
End Sub
If you type something into the first column and do not get a date in the column b insert a normal module, paste and run the following code, then try the same worksheet:

Code:
Sub mkSure()
Application.EnableEvents = True
End Sub

Hope this helps.

_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue">O</font></font></font>
This message was edited by NateO on 2002-03-18 16:17
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top