LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamic Creation of borders

I'm trying to dynamicly create a square ranged border. I take a value
off of the sheet "Param" then try to create a red border on "Magic".
However I keep getting a "Run-tim error '1004': Applicatoin-defined or
object defined error". Is there any other way for me to do this?

Thanks

Adam


Function Build_Grid()

Dim Start As Integer
Start = Worksheets("Param").Range("ODD_INPUT").Value
Worksheets("Magic").Cells.Clear

Worksheets("Magic").Range(Cells(1, 1), Cells(Start,
Start)).BorderAround ColorIndex:=3, Weight:=xlThick


MsgBox "Your Square has been created"




End Function



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
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
Dynamic creation, or something different needed? Nehvun Excel Worksheet Functions 0 July 31st 07 06:12 AM
Dynamic Formula Creation?? [email protected] Excel Discussion (Misc queries) 2 October 27th 06 09:14 AM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Dynamic Table Should Always Maintain Borders When Data Is Updated Dynamic Table Should Maintain Borders Excel Discussion (Misc queries) 0 September 9th 05 09:43 PM


All times are GMT +1. The time now is 01:41 AM.

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"