Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default textbox in a macro

I have a workbook with 4 sheets. In a form with 4 textboxes. If the sheets
are visible I want to change the value of these textboxes

for i= 1 to 4
if sheets(i).visible=true then
textbox(i).value = true
end if
next i

the problem is that the command textbox(i) is not recognized by excel
I receive message

"compile error sub or function not defined"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default textbox in a macro

sorry...
I make a mistake...
I want to use checkbox(i) and not textbox(i)

thanks

"costas" wrote:

I have a workbook with 4 sheets. In a form with 4 textboxes. If the sheets
are visible I want to change the value of these textboxes

for i= 1 to 4
if sheets(i).visible=true then
textbox(i).value = true
end if
next i

the problem is that the command textbox(i) is not recognized by excel
I receive message

"compile error sub or function not defined"

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default textbox in a macro

See you first posting of this question for sample code.

--
Regards,
Tom Ogilvy

"costas" wrote in message
...
sorry...
I make a mistake...
I want to use checkbox(i) and not textbox(i)

thanks

"costas" wrote:

I have a workbook with 4 sheets. In a form with 4 textboxes. If the

sheets
are visible I want to change the value of these textboxes

for i= 1 to 4
if sheets(i).visible=true then
textbox(i).value = true
end if
next i

the problem is that the command textbox(i) is not recognized by excel
I receive message

"compile error sub or function not defined"



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
'Find' textbox value macro D Excel Discussion (Misc queries) 3 February 20th 08 05:26 PM
a macro that Formats a textbox based on value in a cell txm49 Excel Worksheet Functions 1 June 6th 07 02:36 PM
How to move cursor from one textbox control to another textbox con Tom Ogilvy Excel Programming 1 September 16th 04 03:42 PM
Excel VBA/Macro - Textbox thesteelmaker[_3_] Excel Programming 1 February 20th 04 06:33 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 12:16 PM.

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"