![]() |
Dynamic scroll area
I want to be able to change the size of the scroll area on a work sheet when I run a macro. The problem is that the format for doing this is Worksheets("Sheet2").ScrollArea = "A1:B2" where "A1:B2" has to be a string, however i will be calculating the range in the VB macro so it will be in the form of Ranges(cells(a,b),cells(x,y)) - where a,b,x & y are calculated - and this is not a string. How can I solve this?? Grateful for any help -- Noslien ------------------------------------------------------------------------ Noslien's Profile: http://www.excelforum.com/member.php...o&userid=31701 View this thread: http://www.excelforum.com/showthread...hreadid=514035 |
Dynamic scroll area
"Noslien" a écrit dans le message de ... I want to be able to change the size of the scroll area on a work sheet when I run a macro. The problem is that the format for doing this is Worksheets("Sheet2").ScrollArea = "A1:B2" where "A1:B2" has to be a string, however i will be calculating the range in the VB macro so it will be in the form of Ranges(cells(a,b),cells(x,y)) - where a,b,x & y are calculated - and this is not a string. How can I solve this?? Grateful for any help -- Noslien ------------------------------------------------------------------------ Noslien's Profile: http://www.excelforum.com/member.php...o&userid=31701 View this thread: http://www.excelforum.com/showthread...hreadid=514035 Worksheets("Sheet2").ScrollArea = Range(cells(a,b),cells(x,y)).Address HTH -- AP |
Dynamic scroll area
Many thanks for the help -- Noslien ------------------------------------------------------------------------ Noslien's Profile: http://www.excelforum.com/member.php...o&userid=31701 View this thread: http://www.excelforum.com/showthread...hreadid=514035 |
All times are GMT +1. The time now is 02:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com