LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Inputing Data

The only thing I changed is the input field from A1 to E6. Here's the
code:

Private Sub Worksheet_Change(ByVal Target As Range)

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False

Dim DestRng As Range

Set DestRng = Me.Range("IV20")

If Target.Address = "$d$6" Then
With DestRng.End(xlToLeft)
If IsEmpty(.Item(1)) Then
.Value = Target.Value
Else
.Offset(0, 1).Value = Target.Value
End If

End With

Target.ClearContents
Target.Select

End If

Application.EnableEvents = True

End Sub

DLS

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
inputing survey data LadyZ Excel Discussion (Misc queries) 2 March 20th 08 03:52 AM
inputing data using vba [email protected] Excel Discussion (Misc queries) 0 January 10th 06 04:09 AM
inputing data using vba [email protected] Excel Discussion (Misc queries) 0 January 2nd 06 12:56 AM
inputing data [email protected] Excel Discussion (Misc queries) 0 December 28th 05 02:01 PM
Inputing Data DLS[_2_] Excel Programming 0 August 7th 03 04:41 PM


All times are GMT +1. The time now is 12:38 PM.

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"