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

Thanks for all the help so far guys. One more question.

Here's a snippet of code from my current project:

With Worksheet
..Range("A1:C2").Borders.LineStyle = WdLineStyleSingle
End With

I always compile with:

Option Explicit

So when I try to run this subject, I get the error:

Compile error:
Variable not defined

Isn't WdLineStyleSingle built in? Do I need to Dim it?

Is WdLineStyleSingle just some constant where I can substitute the
actual value (just use 2 or whatever the value is) instead?

Thanks again for the great help.

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
border on last cell of page effects border on beginning cell of ne GaryE Excel Discussion (Misc queries) 0 March 23rd 09 05:47 AM
Border MADDY Excel Discussion (Misc queries) 5 November 30th 07 04:55 AM
Border help erikkeith via OfficeKB.com Excel Programming 8 May 7th 06 01:22 PM
Changing the border of one cell s/n change the border of adjacent gjanssenmn Excel Discussion (Misc queries) 2 October 5th 05 08:35 PM
Border VBA Pete Excel Programming 5 April 27th 04 10:02 PM


All times are GMT +1. The time now is 03:13 PM.

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"