Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error LineStyle

Recorded a macro (in Excel 97) that places border around each selected cell.
But when I run that macro I get err 1004 "Unable to set the LineStyle
property of the Border class".

It's fine if I delete references that try to change xlInsideVertical or
xlInsideHorizontal, but I need to apply a complete border to the four sides
of each cell.

Thank you for any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default Error LineStyle

If you're still having this issue, please post your code.

Cliff Edwards

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error LineStyle

Thanks, Ward. I seem to have 'fixed' it. The problem was in whether a cell or
a range of cells were selected. "On Error Resume Next" gets around it.
literally.

"ward376" wrote:

If you're still having this issue, please post your code.

Cliff Edwards


Reply
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
Dotted Linestyle is not seen in Print of the excel PariDhillon Excel Discussion (Misc queries) 1 April 25th 08 01:43 PM
Error LineStyle property of Border Class NevilleT Excel Programming 2 November 1st 07 11:28 AM
"Linestyle" in Macro Dave Birley Excel Programming 2 May 7th 07 03:30 PM
What is fastest? "If .LineStyle < xlContinuous ..." or ".LineStyle = xlContinuous" ?? tskogstrom Excel Programming 12 April 16th 07 10:08 AM
Error Handling - On Error GoTo doesn't trap error successfully David Excel Programming 9 February 16th 06 05:59 PM


All times are GMT +1. The time now is 02:05 PM.

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

About Us

"It's about Microsoft Excel"