Hi there,
I have 2 sheets in my workbook, called 'Master' and 'Transactions', each has 1 table in it called 'MasterTbl' and 'TransactionsTbl'
In the Master Sheet, I've created a column that uses the HYPERLINK() function to generate a hyperlink in each row like so :
=IFERROR(HYPERLINK("#createTransaction()","Add Transaction"),"Add Transaction")
The resultant hyperlink in each cell in that column says 'Add Transaction', and when clicked, it calls the 'createTransaction' function located in my Module 1 code.
The goal of this code is to simply do 3 things :
// This successfully selects the focus to the newly added row in on the 'TransactionsTbl'
However, if i run any commands to try and filter the 'TransactionsTbl' table (using our example above , lets say , on ID=16), the UI does not update but remains showing all the records in the 'TransactionsTbl' on the 'Transactions' Sheet.
Can anyone possible shed some light on how I can retain the benefits of the HYPERLINK() functionality, but also be able to jump to sheet and have the UI update accordingly when i make changes to it ?
Thank you ahead of time.
I have 2 sheets in my workbook, called 'Master' and 'Transactions', each has 1 table in it called 'MasterTbl' and 'TransactionsTbl'
In the Master Sheet, I've created a column that uses the HYPERLINK() function to generate a hyperlink in each row like so :
=IFERROR(HYPERLINK("#createTransaction()","Add Transaction"),"Add Transaction")
The resultant hyperlink in each cell in that column says 'Add Transaction', and when clicked, it calls the 'createTransaction' function located in my Module 1 code.
The goal of this code is to simply do 3 things :
- Add a new row to the end of the ''TransactionsTbl' table
- Then filter the table in the 'Transactions' sheet based on some of the row data from the row we just clicked on in the 'MasterTbl' table. So for instance if we clicked on a row in the 'MasterTbl' which had an ID=16, then the goal would be to filter the table in the 'TransactionsTbl' table to only show rows that also had an ID of 16
- And finally, the last goal would be to then jump to that sheet so the user could see the nicely filtered result.
VBA Code:
Set createTransaction = Worksheets("Transactions").Range(tor.Range.Address)
However, if i run any commands to try and filter the 'TransactionsTbl' table (using our example above , lets say , on ID=16), the UI does not update but remains showing all the records in the 'TransactionsTbl' on the 'Transactions' Sheet.
VBA Code:
Sheets("Transactions").ListObjects(1).Range.AutoFilter Field:=1, Criteria1:=16
Can anyone possible shed some light on how I can retain the benefits of the HYPERLINK() functionality, but also be able to jump to sheet and have the UI update accordingly when i make changes to it ?
Thank you ahead of time.
Last edited by a moderator: