Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default if any range on sheet2 change put "a" in sheet1 cell a111

hey...

what code would i use where to get a "A" in cell a111 on sheet1 when a user
change any cell on sheet2?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default if any range on sheet2 change put "a" in sheet1 cell a111

What is causing the data to change - manual changes? then you can use the
Change event in Sheet2. Right click on Sheet2 tab and select view code. In
the code module put in code like

Private Sub Worksheet_Change(ByVal Target As Range)
worksheets("Sheet1").Range("A111").Value = "A"
End Sub

If you just want to know if the workbook needs to be saved, looked at the

ThisWorkbook.Saved property.

--
Regasrds,
Tom Ogilvy





"pswanie" wrote:

hey...

what code would i use where to get a "A" in cell a111 on sheet1 when a user
change any cell on sheet2?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default if any range on sheet2 change put "a" in sheet1 cell a111

yes it changes manualy. its a inventry and when the authorised user changes
a menu item it needs to put a "a" in sheet1 a111. then next time the user
open the workbook it will email and download it to all other users using the
inventry.

to i will use

Private Sub Worksheet_Change(ByVal Target As Range)
worksheets("Sheet1").Range("A111").Value = "A"
End Sub


thanx...

phillip

"Tom Ogilvy" wrote:

What is causing the data to change - manual changes? then you can use the
Change event in Sheet2. Right click on Sheet2 tab and select view code. In
the code module put in code like

Private Sub Worksheet_Change(ByVal Target As Range)
worksheets("Sheet1").Range("A111").Value = "A"
End Sub

If you just want to know if the workbook needs to be saved, looked at the

ThisWorkbook.Saved property.

--
Regasrds,
Tom Ogilvy





"pswanie" wrote:

hey...

what code would i use where to get a "A" in cell a111 on sheet1 when a user
change any cell on sheet2?

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
how do i convert this to a formula +"sheet1!J"&(sheet2!A30)-1 joel Excel Worksheet Functions 3 December 5th 07 01:48 PM
how do copy "sheet1!A1+1 in sheet2 to sheet 3 and get "sheet2!A1+ Dany Excel Discussion (Misc queries) 5 April 16th 07 03:27 AM
Cut rows if contains "Done" from sheet1, and paste onto next available row in sheet2 in the same workbook. Steven Excel Programming 3 November 17th 05 08:04 AM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" Luc[_3_] Excel Programming 2 September 28th 05 08:37 PM
Sheets("sheet1").Range command between workbooks Luc[_3_] Excel Programming 3 September 27th 05 01:03 PM


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