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

I received the following suggestion to move text boxes

Sub moveit()
With Workbooks("Book1.xls").Worksheets("Sheet1")
.TextBox1.Top=Sheet1.Range("B2").Top
.TextBox1.Left=Sheet1.Range("B2").Left
End With
End Sub

I get a message straight away highlighting the first
line (..With Workbooks etc) saying reference is out
of range.

Any suggestions?
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Moving Text Boxes

Do you have a workbook named "Book1.xls" (not named Book1 - a default
workbook does not have an extension). And that workbook has a worksheet
with a tab name of "Sheet1"


Not having one of those is usually the cause of this message.

Regards,
Tom Ogilvy


"phil perry" wrote in message
...
I received the following suggestion to move text boxes

Sub moveit()
With Workbooks("Book1.xls").Worksheets("Sheet1")
.TextBox1.Top=Sheet1.Range("B2").Top
.TextBox1.Left=Sheet1.Range("B2").Left
End With
End Sub

I get a message straight away highlighting the first
line (..With Workbooks etc) saying reference is out
of range.

Any suggestions?
Thanks



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
User Form Text Boxes - Copy format of text boxes NDBC Excel Discussion (Misc queries) 3 July 2nd 09 02:02 AM
Print = moving check boxes [email protected] Excel Discussion (Misc queries) 3 August 17th 07 02:07 AM
Moving Check Boxes Rob J Excel Discussion (Misc queries) 0 September 25th 06 05:29 PM
Moving. Want to number boxes and inventory contents of boxes [email protected] Charts and Charting in Excel 1 August 29th 06 09:48 AM
Form Text Boxes moving md2503 Excel Worksheet Functions 2 May 16th 05 07:57 PM


All times are GMT +1. The time now is 01:41 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"