Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 6
Default From Excel to user form

Hi,
how can I make this code for user form and text box instead of sheet and cells

Private Sub Worksheet_Change(ByVal Target As Range)

'Only single cell selections are of interest
If Target.Count 1 Then Exit Sub

Application.EnableEvents = False
'Is the cell that changed the one we want?
If Target.Address = "$C$14" Then
Range("$E$21") = Target * Worksheets("Sheet2").Range("$G$5)
End If
Application.EnableEvents = True

End Sub
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
excel user form rohit Excel Programming 0 February 25th 10 10:09 AM
Is this possible in Excel (User Form) sam Excel Programming 1 July 7th 09 04:34 PM
Excel User Form MG Excel Worksheet Functions 0 February 25th 09 01:58 AM
Date field in user form & Loading a user form on opening workbook Balan Excel Programming 1 May 24th 08 03:40 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 08:57 PM


All times are GMT +1. The time now is 11:51 PM.

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"