Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VBA for Dialog Box

I receive a error message code 9 "Subscript Out of Range"
when the VBA code for retreiving information from an
editbox in a dialog box. All editboxes in my dialog box
have a name. For example: My dialog box is in a dialog
sheet named "BoMSetUp", Editbox is named "RONum",
Worksheet is named "BoMform". I want to take the entered
text of the "RONum" editbox and insert that text into
cell "C4" in my worksheet "BoM form". The code
reads "Sheets("BoM form").Range("C4").Value = DialogSheets
("BoMSetUp").EditBoxes("RONum").text. When running the
macro i receive the error message code 9. Can anyone help
me?

Thanks,
Gary
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA for Dialog Box

Sub AA_Getvalue()
Sheets("BoM form").Range("C4").Value = _
DialogSheets("BoMSetUp").EditBoxes("RONum").Text
End Sub

worked fine for me (xl2000) whether I ran if from a general module with the
no dialog showing or whether I attached the code to a button on the
dialogsheet and ran it by clicking the button.

Perhaps you have a miss spelling or one of the names contains a space on the
end or something similar.

Regards
Tom Ogilvy

"Gary" wrote in message
...
I receive a error message code 9 "Subscript Out of Range"
when the VBA code for retreiving information from an
editbox in a dialog box. All editboxes in my dialog box
have a name. For example: My dialog box is in a dialog
sheet named "BoMSetUp", Editbox is named "RONum",
Worksheet is named "BoMform". I want to take the entered
text of the "RONum" editbox and insert that text into
cell "C4" in my worksheet "BoM form". The code
reads "Sheets("BoM form").Range("C4").Value = DialogSheets
("BoMSetUp").EditBoxes("RONum").text. When running the
macro i receive the error message code 9. Can anyone help
me?

Thanks,
Gary



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
Dialog Pop Up Box Linda D F Excel Discussion (Misc queries) 1 May 16th 08 08:31 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
Use of Dialog markuss New Users to Excel 4 June 24th 06 02:13 AM
Go To Dialog box Susan Dinishak Excel Discussion (Misc queries) 2 June 3rd 06 05:29 PM
dialog box alm09 Excel Discussion (Misc queries) 1 March 31st 06 05:50 PM


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