Formula Referencing Worksheet Name by Variable
Hi,
Sub TEST() With ActiveSheet .Range("B2").Formula = "='" & Sheets.Add.Name & "'!A7" .Activate End With End Sub -- Regards, Soo Cheon Jheong _ _ ^ ^ V |
All times are GMT +1. The time now is 06:05 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com