Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default not sure where to start

want to when leaving a cell in column (L) check if amount is over $10.00. If
it is then copy some other cells in the row to another sheet and take amount
over ten also. This same code will be applied to several sheets as many
different entries in parade. Am used to excel validation its tieing it all
together that stops me.
Sure am thankful for support given. At my age I need all I can get. Am
having good time trying to do this.
Thanks to all of You

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default not sure where to start

This should give you a start. Paste this code into the thisworkbook module of
the workbook... (right click on the Excel Icon next to the word file in the
XL menu and select view code...)

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Select Case Sh.Name
Case "Sheet1", "Sheet2"
If Target.Column = 12 And Target.Value 10 Then Call
CopyStuff(Target)
End Select

End Sub

Private Sub CopyStuff(ByVal Target As Range)
Dim wksSummary As Worksheet
Dim rngPaste As Range

Set wksSummary = Sheets("Sheet3")
Set rngPaste = wksSummary.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)

rngPaste = Target.Value
rngPaste.Offset(0, 1) = Target.Offset(0, -1)
End Sub
--
HTH...

Jim Thomlinson


"Curt" wrote:

want to when leaving a cell in column (L) check if amount is over $10.00. If
it is then copy some other cells in the row to another sheet and take amount
over ten also. This same code will be applied to several sheets as many
different entries in parade. Am used to excel validation its tieing it all
together that stops me.
Sure am thankful for support given. At my age I need all I can get. Am
having good time trying to do this.
Thanks to all of You

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default not sure where to start

Thanks Much all of you to one of my age are great
Thanks

"Jim Thomlinson" wrote:

This should give you a start. Paste this code into the thisworkbook module of
the workbook... (right click on the Excel Icon next to the word file in the
XL menu and select view code...)

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Select Case Sh.Name
Case "Sheet1", "Sheet2"
If Target.Column = 12 And Target.Value 10 Then Call
CopyStuff(Target)
End Select

End Sub

Private Sub CopyStuff(ByVal Target As Range)
Dim wksSummary As Worksheet
Dim rngPaste As Range

Set wksSummary = Sheets("Sheet3")
Set rngPaste = wksSummary.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)

rngPaste = Target.Value
rngPaste.Offset(0, 1) = Target.Offset(0, -1)
End Sub
--
HTH...

Jim Thomlinson


"Curt" wrote:

want to when leaving a cell in column (L) check if amount is over $10.00. If
it is then copy some other cells in the row to another sheet and take amount
over ten also. This same code will be applied to several sheets as many
different entries in parade. Am used to excel validation its tieing it all
together that stops me.
Sure am thankful for support given. At my age I need all I can get. Am
having good time trying to do this.
Thanks to all of You

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default not sure where to start

this old boy isn't smart enough yet. know its funny at 70 why people think
you can do anything. the right click on excel icon was a big help.
need more coaching can you advise is word vba close enough for excel. can
get cources on word but not excel
what I am doing I have wkssheets
1 data
6 motorcycles
7 indian
8 native
5 donors
need to copy to donors from all other target = 10 or J made change fron L
does this code need to be into a macro and called when needed. have never
done this in workbook befor. Seems to me that in workbook it will serve all
worksheets?
If I see this work on one sheet can probably do rest.
Thanks it sure is appreciated.

"Jim Thomlinson" wrote:

This should give you a start. Paste this code into the thisworkbook module of
the workbook... (right click on the Excel Icon next to the word file in the
XL menu and select view code...)

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Select Case Sh.Name
Case "Sheet1", "Sheet2"
If Target.Column = 12 And Target.Value 10 Then Call
CopyStuff(Target)
End Select

End Sub

Private Sub CopyStuff(ByVal Target As Range)
Dim wksSummary As Worksheet
Dim rngPaste As Range

Set wksSummary = Sheets("Sheet3")
Set rngPaste = wksSummary.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)

rngPaste = Target.Value
rngPaste.Offset(0, 1) = Target.Offset(0, -1)
End Sub
--
HTH...

Jim Thomlinson


"Curt" wrote:

want to when leaving a cell in column (L) check if amount is over $10.00. If
it is then copy some other cells in the row to another sheet and take amount
over ten also. This same code will be applied to several sheets as many
different entries in parade. Am used to excel validation its tieing it all
together that stops me.
Sure am thankful for support given. At my age I need all I can get. Am
having good time trying to do this.
Thanks to all of You

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default not sure where to start

addenum will be copying E,F,G,H,I,J-$10.00,K to donors
didn't think to put this in first message
Thanks Again

"Jim Thomlinson" wrote:

This should give you a start. Paste this code into the thisworkbook module of
the workbook... (right click on the Excel Icon next to the word file in the
XL menu and select view code...)

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Select Case Sh.Name
Case "Sheet1", "Sheet2"
If Target.Column = 12 And Target.Value 10 Then Call
CopyStuff(Target)
End Select

End Sub

Private Sub CopyStuff(ByVal Target As Range)
Dim wksSummary As Worksheet
Dim rngPaste As Range

Set wksSummary = Sheets("Sheet3")
Set rngPaste = wksSummary.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)

rngPaste = Target.Value
rngPaste.Offset(0, 1) = Target.Offset(0, -1)
End Sub
--
HTH...

Jim Thomlinson


"Curt" wrote:

want to when leaving a cell in column (L) check if amount is over $10.00. If
it is then copy some other cells in the row to another sheet and take amount
over ten also. This same code will be applied to several sheets as many
different entries in parade. Am used to excel validation its tieing it all
together that stops me.
Sure am thankful for support given. At my age I need all I can get. Am
having good time trying to do this.
Thanks to all of You

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
Calculating monthly start date with a start date Monique Excel Worksheet Functions 3 December 20th 08 09:50 AM
start:1 and start:2 - how did i get 2 copies? LuvHaleiwa Excel Discussion (Misc queries) 1 December 21st 07 09:14 PM
start learning Excel/VBA, where to start from? Any online video lectures? cfman Excel Programming 8 September 29th 06 10:40 AM
OT :Start your own online business today !start making dollars [email protected] Excel Discussion (Misc queries) 0 May 6th 06 09:29 PM
Start spreadsheet with WinXP start Gordon Gradwell Excel Worksheet Functions 1 July 13th 05 11:35 AM


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