LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default add three parts of text with one date into a string


thanks both of you,

my desired purpose has solved with combine coding of both of you.

but Tom, there is a mistake in your coding, that is why is doesn't
execute following code of the code:

Workbooks.Open Filename:="\\SS\ss_d\HOTEL HOST INTL. ROOM BILL
FORMAT\ROOM BILLS FORMAT IN EXCEL\all room bill 1 to 6.xls"
ActiveWindow.WindowState = xlMaximized

because you closing the main sheet from where this macro is working
using following command:

ActiveWorkbook.close SaveChanges:=False

but code of Bob is solve the purpose:

Workbooks.Open Filename:="\\SS\ss_d\HOTEL HOST INTL. ROOM BILL
FORMAT\ROOM BILLS FORMAT IN EXCEL\all room bill 1 to 6.xls"

Windows(fname1 ).Activate
ActiveWorkbook.Save
ActiveWorkbook.Close
Windows("all room bill 1 to 6.xls").Activate
ActiveWindow.WindowState = xlMaximized

hope you will agree with me with the mistake.

but Tom, your following code is realy easy one:
fname1 = "RM-1 " & format(Date,"dd-mm-yy") & ".xls"

i hope Bob also appreciate this.

any way i have combine both of your code, and solve most of my
purpose.

i am gratefull to both of you that i have learnt new things from you.

can any one of you give me idea on the following:

1) how i will ingone the message box of 'Replace file', which is
showing eveytime, that my file is file is exist. i will save my file
any number of time in a day or as monthly, as i add new date in it.
how i will set this?


2)the file, all room bill 1 to 6.xls, sheet contain date and as well as
all button, which excute these macros. they are on the O columns and i
have data from A to N column so i want to save the data of this column,
there will be any number of rows in these columns, there is no need of
the insert button in daily and monthly excel file. is this possible?

for your reference i am giving following information, which should be
maintain in every daily and monthly files, which are creating during
excution of code.

* row height is fixed to 41.25 pixel

* there is fixed title, which will print on the top of the everypage,
everytime, which are in terms of row $1:$8

i have locked those button so they don't get printed during data
printing.

if you need any more information please feel free to ask me.

hope i am clear regarding my desired job.

thanks,

sujata.


--
sujata_ghosh
------------------------------------------------------------------------
sujata_ghosh's Profile: http://www.excelforum.com/member.php...o&userid=16432
View this thread: http://www.excelforum.com/showthread...hreadid=277972

 
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
Date in Text String AMH Excel Worksheet Functions 1 June 30th 08 03:39 PM
Extract certain parts of string djDaemon Excel Worksheet Functions 3 February 2nd 06 07:42 PM
Extract certain parts of string djDaemon Excel Worksheet Functions 0 February 2nd 06 03:31 PM
Convert text string to date AK Excel Worksheet Functions 1 February 1st 06 06:27 PM
add three parts of text with one date into a string sujata_ghosh Excel Programming 2 November 13th 04 02:13 PM


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