Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Getting text data from textbox


Hallo Guys,

First of all thanks for making a wonderful forum public in order to
help consumers with questions and problems! It is really appreciated by
the community - thanks for everyone's hard work!

Now to my problem/question:

1.) I have multiple workbooks to combine into one (litterally
thousands)
2.) Each of these workbooks contains lots of data that needs to be
fetched and exported into a .CSV file.
3.) I use a macro the get the data from specified locations and export
them into seperate CSV files in a specific field order. I then use
another sub to take all the CSV files and append into one.
4.) All of the fields are in specified rows and columns, EXCEPT for
one. This filed I need is resident inside a textbox inside the
workbooks.
5.) This content and length of this field differs from workbook to
workbook and I need a piece of code to "get" this text, place it inside
a row/col and export it to CSV with the other fields.
6.) Luckily if seems that the text box are named in all the sheets as
"Text Box 2" (The one's I spot checked at least)

How do I get the text from the textbox and place it into any ROW/COLUMN
in order to export it?

Thanx in advance for any help provided!

Kind regards

CW


--
cyberwar
------------------------------------------------------------------------
cyberwar's Profile: http://www.excelforum.com/member.php...o&userid=28136
View this thread: http://www.excelforum.com/showthread...hreadid=476486

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting text data from textbox

A basic approach would be:

sStr = ActiveSheet.TextBoxes("Text Box 2").Text
Thisworkbook.Worksheets( _
"ConsolidatedCSVData").Cells(i,"G").Value = sStr

--
Regards,
Tom Ogilvy


"cyberwar" wrote in
message ...

Hallo Guys,

First of all thanks for making a wonderful forum public in order to
help consumers with questions and problems! It is really appreciated by
the community - thanks for everyone's hard work!

Now to my problem/question:

1.) I have multiple workbooks to combine into one (litterally
thousands)
2.) Each of these workbooks contains lots of data that needs to be
fetched and exported into a .CSV file.
3.) I use a macro the get the data from specified locations and export
them into seperate CSV files in a specific field order. I then use
another sub to take all the CSV files and append into one.
4.) All of the fields are in specified rows and columns, EXCEPT for
one. This filed I need is resident inside a textbox inside the
workbooks.
5.) This content and length of this field differs from workbook to
workbook and I need a piece of code to "get" this text, place it inside
a row/col and export it to CSV with the other fields.
6.) Luckily if seems that the text box are named in all the sheets as
"Text Box 2" (The one's I spot checked at least)

How do I get the text from the textbox and place it into any ROW/COLUMN
in order to export it?

Thanx in advance for any help provided!

Kind regards

CW


--
cyberwar
------------------------------------------------------------------------
cyberwar's Profile:

http://www.excelforum.com/member.php...o&userid=28136
View this thread: http://www.excelforum.com/showthread...hreadid=476486



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
How can I autocopy text from one textbox to another using VBA in E SunFUd01 Excel Discussion (Misc queries) 0 November 18th 09 06:24 PM
Add Text to Textbox value by looping through a data range. Francis Brown Excel Programming 5 October 6th 05 12:16 AM
Add Text to Textbox value by looping data Francis Brown Excel Programming 1 October 6th 05 12:06 AM
Clicking the text in a textbox erases all the data in the box dok112[_20_] Excel Programming 4 July 27th 04 01:26 PM
check variable(text) with cell (text), textbox Mark[_17_] Excel Programming 1 August 27th 03 01:15 PM


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