XLXRider
Board Regular
- Joined
- Jul 31, 2004
- Messages
- 180
Hi, Excellers!
This code crashes in Excel 2007, but runs fine in 2003. I know where it crashes, I just don't know why. Any help is most appreciated.
Etcetera...
It runs down to "Selection.Characters.Text =" but when it gets to the next line, "Selection.Characters(203).Insert String:=" it crashes.
Advice from all gurus welcome!
TIA,
XLXRider
This code crashes in Excel 2007, but runs fine in 2003. I know where it crashes, I just don't know why. Any help is most appreciated.
Code:
Sub Instructions()
'
' Instructions Macro
' Macro by The Great and Powerful Oz
'Assigned to the "Help" Button
Application.ScreenUpdating = False
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 89, 30, 465, 240).Name = "Instructions"
ActiveSheet.Shapes("Instructions").Select
Selection.OnAction = "InstructionsGone"
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 26
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 5
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineThinThin
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 12
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
Selection.Characters.Text = _
" " & Chr(10) & " How to use this file:" & Chr(10) & "" & Chr(10) & " First, make a copy of Master. Work off the copy, not Master itself." & Chr(10) & Chr(10) & " Next, put the individual's name in "
Selection.Characters(203).Insert String:= _
"the very top cell - M1 - that contains the text ""Master.""" & Chr(10) & " Cell M1, and the sheet's tab is automatically named. Any other cell, and it's not." & Chr(10) & Chr(10) & " Put the "
Selection.Characters(401).Insert String:= _
"individual's annual Vacation Days in the colored cell indicated by ""Days Available.""" & Chr(10) & Chr(10) & " To indicate a Full or Half-Day Vacation,"
It runs down to "Selection.Characters.Text =" but when it gets to the next line, "Selection.Characters(203).Insert String:=" it crashes.
Advice from all gurus welcome!
TIA,
XLXRider