LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JLX JLX is offline
external usenet poster
 
Posts: 2
Default Setting a range on a particular sheet

I am trying to compare the column widths between 2 sheets. If they differ one
of the sheets will have the column bordered in red using the borderaround
method.
However the button to initiate the comparison is on a third sheet and the
border always appears on this sheet. Have tried activating the sheet prior to
defining the range. Code as follows
set myRange = worksheets("Name of sheet").Range(Cells(1, colNum), Cells(50,
colNum)) does not work although the help suggests it should work.


 
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
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
VBA setting range in another sheet Jeff Excel Discussion (Misc queries) 2 October 14th 05 02:11 PM
setting range().hidden=True causes range error 1004 STEVE BELL Excel Programming 6 September 2nd 05 02:16 AM
Help setting a print range in a data sheet Dave Peterson[_3_] Excel Programming 0 August 31st 04 01:05 AM
Help setting a print range in a data sheet Tom Ogilvy Excel Programming 0 August 31st 04 01:00 AM


All times are GMT +1. The time now is 05:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"