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

Hi.

How to extract name without quotation marks.

E.g
I need to replace

Print #1, TextBox1.Value
Print #1, TextBox2.Value
Print #1, TextBox3.Value

to something like that

For x = 1 To 6
text = "TextBox" & x & ".Value"
Print #1, text <-- text must be without quotation

P.Kosinski

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

assume the textboxes are activeX textboxes on a worksheet

for i = 1 to 6
Print #1, Activesheet.OleObjects( _
"Textbox" & i).Object.Value
Next

--
Regards,
Tom Ogilvy


"kosecki" wrote in message
ups.com...
Hi.

How to extract name without quotation marks.

E.g
I need to replace

Print #1, TextBox1.Value
Print #1, TextBox2.Value
Print #1, TextBox3.Value

to something like that

For x = 1 To 6
text = "TextBox" & x & ".Value"
Print #1, text <-- text must be without quotation

P.Kosinski



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quotation Marks

OK.

But when I'd like to assign something to

For i = 0 To 5
ActiveSheet.OLEObjects("Dane.Textbox" & i).Object.Value = table(i)

Next i

I've "Cannot get OLEObjects properties of Worksheet class" or error (or
something like that, I've Polish version of Office)

Greetings

P. Kosinski

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Quotation Marks

what is DANE? I assumed your textboxes are on a worksheet.

If not on a worksheet, where are they?

--
Regards,
Tom Ogilvy

"Piotr Kosinski" wrote in message
...
OK.

But when I'd like to assign something to

For i = 0 To 5
ActiveSheet.OLEObjects("Dane.Textbox" & i).Object.Value = table(i)

Next i

I've "Cannot get OLEObjects properties of Worksheet class" or error (or
something like that, I've Polish version of Office)

Greetings

P. Kosinski

*** Sent via Developersdex http://www.developersdex.com ***



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
Quotation Marks 9pluck9 Excel Discussion (Misc queries) 2 May 2nd 07 04:40 PM
Quotation Marks? LinearChaos Excel Worksheet Functions 2 June 25th 06 10:31 PM
without quotation marks? jfazz Excel Discussion (Misc queries) 1 March 2nd 06 04:43 PM
Quotation Marks - When and What?? heski Excel Discussion (Misc queries) 2 February 7th 06 12:40 PM
Using quotation marks Mike Collard Excel Programming 4 July 20th 04 08:09 PM


All times are GMT +1. The time now is 05:46 PM.

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"