PC Review


Reply
Thread Tools Rate Thread

Cross-sheet hyperlinking, data insert,lookup

 
 
csaba kobol
Guest
Posts: n/a
 
      15th Jul 2007
Hi, I have a problem I am newbie for VBA.
I have a master sheet and a slave sheet.
I want to automatize this:
If I enter/edit something in MasterSheet.Range (CustomerNr) into cell
then excel make a lookup into Slave1Sheet.Range(OrderNr) and if not
exists then copy my entry to
SlaveSheetRange(OrderNr).CoulmnA.LastCell and made a hyperlink vica-
versa for that row/cell, if exists select the last OrderNr for that
CustomerNr. (In slave sheet aren't customer nr. so its some
backtracking for MasterSheet) I cannot change the xls structure.
Please help.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      16th Jul 2007
You need to write a worksheet_change function. Wroksheet_change get place
on worksheet page in VBA not in modules. to get to the corrrect page go to
botttom of excel worksheet 9normally sheet 1) and right click and select view
code. Place the code on this page. You can experiment with the sample code
below which is from the VBA help menu.


Private Sub Worksheet_Change(ByVal Target As Range)
Target The changed range. Can be more than one cell.

Remarks
This event doesn't occur when cells change during a recalculation. Use the
Calculate event to trap a sheet recalculation.
Example
This example changes the color of changed cells to blue.

Private Sub Worksheet_Change(ByVal Target as Range)
Target.Font.ColorIndex = 5
End Sub



"csaba kobol" wrote:

> Hi, I have a problem I am newbie for VBA.
> I have a master sheet and a slave sheet.
> I want to automatize this:
> If I enter/edit something in MasterSheet.Range (CustomerNr) into cell
> then excel make a lookup into Slave1Sheet.Range(OrderNr) and if not
> exists then copy my entry to
> SlaveSheetRange(OrderNr).CoulmnA.LastCell and made a hyperlink vica-
> versa for that row/cell, if exists select the last OrderNr for that
> CustomerNr. (In slave sheet aren't customer nr. so its some
> backtracking for MasterSheet) I cannot change the xls structure.
> Please help.
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-sheet formula and sort data smuggy Microsoft Excel Worksheet Functions 0 6th Aug 2008 04:15 PM
Hyperlinking or cross referencing in Word 2007 Dave Microsoft Word Document Management 4 9th May 2008 05:55 PM
Hyperlinking from data in one sheet to matching data in another sheet Phrank Microsoft Excel Worksheet Functions 6 18th Dec 2007 09:58 AM
lookup in one sheet and insert in second if not found daljit Microsoft Excel Discussion 2 8th Jul 2004 11:53 AM
cross-sheet lookup impulse24 Microsoft Excel Worksheet Functions 2 24th Mar 2004 08:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:04 PM.