Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to: Open closed workbook/Search data tables/Return data to open workbook | Excel Discussion (Misc queries) | |||
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook | Excel Programming | |||
Open a template, copy 3 worksheets w ranges and save as workbook | Excel Programming | |||
Importing Data from unopened Workbook into an open Workbook | Excel Discussion (Misc queries) | |||
Open a password protected excel workbook from second workbook to fetch data using dynamic connection | Excel Programming |