Remember Me?
Menu
Home
Search
Today's Posts
Home
Search
Today's Posts
ExcelBanter
»
Excel Newsgroups
»
Excel Programming
>
Excel vba
Reply
LinkBack
Thread Tools
Search this Thread
Display Modes
#
1
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Excel vba
You need to give more info here or send to the address below your workbook
and a clear explanation of what you want along with examples.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Neorig" wrote in message
...
The visual basic code i have on the input sheet is:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$5" Then
Call KeepData(Target)
End If
If Target.Address = "$D$5" Then
Call KeepData(Target)
End If
End Sub
And on the worksheet i want it to keep the data on i have the following
module set up:
Public Sub KeepData(ByVal Target As Range)
If Len(Trim(Target.Value)) = 0 Then Exit Sub
Dim wksTarget As Worksheet
Set wksTarget = Worksheets("RecordSheet")
' Find the end of the list
Dim NewEntryCell As Range
Set NewEntryCell =
wksTarget.Range("a1").Offset(wksTarget.Range("a1") .CurrentRegion.Rows.Count,
0)
NewEntryCell.Value = Target.Value
End Sub
hope that helps
"Don Guillett" wrote:
Post your code and tell us what " i cant get the visual basic code right
"
means
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Neorig" wrote in message
...
Hello
i am trying to currently build a worksheet where on the first
worksheet(named input) i will enter data in 6 cells. I then need that
to
transfer to each individual worksheets depending on name, For example
anything that i type regarding "paul" goes on the worksheet that is
named
paul. And on top of that even if i delete the information on paul on
the
input worksheet then its still stays on Pauls worksheet.
I have tried a few things but i cant get the visual basic code right as
i
am
quite a novice at this. Can anyone please please help
Thank you
Reply With Quote
Reply
Thread Tools
Search this Thread
Show Printable Version
Search this Thread
:
Advanced Search
Display Modes
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
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
08:20 AM
.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
Contact Us
ExcelBanter forum home
Privacy Statement
LinkBack
LinkBack URL
About LinkBacks