Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need a save as macro


I have a workbook. WKSHT one is a list of clients. WKSHT two is
generic cover sheet. I have a cell on WKSHT 2 that equals the clien
name on WKSHT one. I need a macro that will copy and paste each clien
name and save it as something different each time

--
mohagany1
-----------------------------------------------------------------------
mohagany19's Profile: http://www.excelforum.com/member.php...fo&userid=1324
View this thread: http://www.excelforum.com/showthread.php?threadid=39866

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Need a save as macro

mohagany19,

If your names are in A1:A100 of WKSHT one, and need to be put into WKSHT two cell A1 prior to
exporting WKSHT two:

Sub mohagany19()
Dim myCell As Range

For Each myCell In Worksheets("WKSHT one").Range("A1:A100")
Worksheets("WKSHT two").Range("A1").Value = myCell.Value
Application.CalculateFull
Sheets("WKSHT two").Copy
ActiveWorkbook.SaveAs myCell.Value & ".xls"
Application.DisplayAlerts = False
ActiveWorkbook.Close False
Application.DisplayAlerts = True
Next myCell
End Sub

--
HTH,
Bernie
MS Excel MVP


"mohagany19" wrote in message
...

I have a workbook. WKSHT one is a list of clients. WKSHT two is a
generic cover sheet. I have a cell on WKSHT 2 that equals the client
name on WKSHT one. I need a macro that will copy and paste each client
name and save it as something different each time.


--
mohagany19
------------------------------------------------------------------------
mohagany19's Profile: http://www.excelforum.com/member.php...o&userid=13248
View this thread: http://www.excelforum.com/showthread...hreadid=398662



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
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Macro to Save without the Save Message Ellen G Excel Discussion (Misc queries) 4 February 23rd 07 08:52 PM
Save As macro Tha BeatMaker[_4_] Excel Programming 1 June 16th 05 07:41 PM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM
Prompted to save changes after macro save - why? Izar Arcturus Excel Programming 2 December 10th 03 09:27 PM


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