Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default naming a file based on cell value?

i have a monthly report that gives me portfolio for each customer.name of
the sheets are generic (somethingxx where xx is number).i allready made
macro that take sheet after sheet and saves it as separate excel file but
then i must look into each file and rename it.can some value from the sheet
be used for a name of a file?

how can this be done?


thx


rene

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default naming a file based on cell value?

You could use something like

With ActiveSheet
.Name = .Range("A1").Value
End With

and change Activesheet to however you are addressing the sheet

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"nokia3650" wrote in message
...
i have a monthly report that gives me portfolio for each customer.name of
the sheets are generic (somethingxx where xx is number).i allready made
macro that take sheet after sheet and saves it as separate excel file but
then i must look into each file and rename it.can some value from the sheet
be used for a name of a file?

how can this be done?


thx


rene


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default naming a file based on cell value?

thanks

that was so simple i am ashamend that i dint it figured out.

once again

htanks


rene
"Bob Phillips" wrote in message
...
You could use something like

With ActiveSheet
.Name = .Range("A1").Value
End With

and change Activesheet to however you are addressing the sheet

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"nokia3650" wrote in message
...
i have a monthly report that gives me portfolio for each customer.name of
the sheets are generic (somethingxx where xx is number).i allready made
macro that take sheet after sheet and saves it as separate excel file but
then i must look into each file and rename it.can some value from the

sheet
be used for a name of a file?

how can this be done?


thx


rene




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
Create Table of Contents based on Heading style - not naming a ran JFREE223 Excel Discussion (Misc queries) 0 December 3rd 09 05:43 PM
Naming cells in a table based on column and row label [email protected] Excel Discussion (Misc queries) 3 December 3rd 06 11:16 AM
cuting sheet and naming it based on value in specific cell? nokia3650 Excel Programming 0 August 1st 06 02:41 PM
naming .xls file based on a cell in excel lsu-i-like Excel Discussion (Misc queries) 1 June 24th 05 09:44 PM
Naming File from a Cell RisingStar Excel Programming 1 August 10th 03 04:46 AM


All times are GMT +1. The time now is 05:50 AM.

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"