Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default text box input data concatenate to file name

Is there any suggestions on how to use text boxes to concatenate a file name?
If I have 3 text boxes I want to have the user select or input information
and then concatenate this with the date time (hr-sec) to create a unique name
that will save the this name as the workbook name in the same location
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default text box input data concatenate to file name

The following is an example of the type of code required:-

Dim strNowTime As String
Dim strTextBox As String
Dim strFileName As String

strTextBox = ActiveSheet.TextBox1.Value

strNowTime = Format(Now, "dd mmm yyyy hh-mm-ss")

'Concatenate TextBox value, space, time, file extension
strFileName = strTextBox & " " & strNowTime & ".xls"


Regards,

OssieMac


"gbpg" wrote:

Is there any suggestions on how to use text boxes to concatenate a file name?
If I have 3 text boxes I want to have the user select or input information
and then concatenate this with the date time (hr-sec) to create a unique name
that will save the this name as the workbook name in the same location

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
Concatenate & Write to Text File Dan R. Excel Programming 3 March 6th 07 12:16 AM
Concatenate to a text file NewGuy100[_3_] Excel Programming 1 October 11th 05 06:45 PM
Concatenate Text File RickKennedy[_2_] Excel Programming 2 October 19th 04 06:05 PM
Concatenate Text File RickKennedy Excel Programming 1 October 18th 04 10:31 PM
Input from Text file BOMB3RMAN[_4_] Excel Programming 2 November 4th 03 03:00 AM


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