Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 1.Open workbook. 2 copy data. 3 replace data. 4 save workbook.


Hi everyone!

I want to start by saying that I am VERY new at VB programming, and
that I honestly greatly appreciate any and all help. My scenario is the
following. I have a workbook(file) called "optimizer" where I run some
financial optimizations to construct financial portfolios. The main
output from "optimizer" is a column which contains the relative weights
to be assigned to the available financial instruments.

1.-Every time I use the optimizer workbook I would like to
automatically save a new file with a worksheet that contains the values
from the optimizer iteration. I would like to save the file as the
clients name...(e.g. jon smith.xls)....which i would specify in a cell
within optimizer (is this even possible??)...ive only seen code to save
files with a filename corresponding to the current day MM/DD/YYYY.

2.- Now say I have to revisit the allocation for Mr. Smith. I open
optimizer. I need a window to pop up and ask me for a client name. I
would type jon smith and it would use this as a file name to open the
workbook we saved in Step 1. I then need for the column in jonsmith.xls
to be copied into a column in the optimizer (active) workbook named
current portfolio. Right next to it is a column called proposed
portfolio. When closing optimizer i would like to replace the data in
jonsmith.xls with the data in the proposed portfolio column. This way,
whenever i open optimizer and specify a client name, I have their
current allocation data, which is then replaced with the proposed data
in the optimizer workbook before closing Excel.


Ladies and Gentlemen....boys and girls....I know its a long post.
thanks for all your help with this. I'll buy you a drink if you’re ever
in town...so long as your 21 that is;) ....Cheers!
Cristobal


--
Cristobalitotom
------------------------------------------------------------------------
Cristobalitotom's Profile: http://www.excelforum.com/member.php...o&userid=36085
View this thread: http://www.excelforum.com/showthread...hreadid=558688

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 to: Open closed workbook/Search data tables/Return data to open workbook Hugh Adams Excel Discussion (Misc queries) 0 August 18th 10 02:04 PM
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Excel Programming 1 April 1st 06 08:48 PM
Open a template, copy 3 worksheets w ranges and save as workbook [email protected] Excel Programming 0 February 3rd 06 05:30 AM
Importing Data from unopened Workbook into an open Workbook GrayesGhost Excel Discussion (Misc queries) 0 March 5th 05 11:25 PM
Open a password protected excel workbook from second workbook to fetch data using dynamic connection kaustav choudhury Excel Programming 2 April 3rd 04 06:18 AM


All times are GMT +1. The time now is 03:14 AM.

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"