Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a large workbook that I use to analyse data that is put into several sheets. Rather than save the large workbook (which is several MB) I would like to run a macro to copy and paste the input information into a new Data only workbook. I will end up with many €śdata€ť workbooks but at least these are less than a hundredth of the size. These Data only files would also permit other people to update the data even though they do not have access to the large workbook. Then when that data is required it can be copied back into the large workbook. I have the macros to do all the copy and pasting but do not know how to prompt the user for naming the file in the first place or recalling the desired file when the data is to be €śimported€ť. My code at the moment refers - several times throughout its execution - to a workbook of a particular name; in practice it needs to refer to the €śselected€ť workbook. Any ideas? Should I approach this in a different way? Kind regards David Hall |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
David,
You could use fName = Inputbox("Supply file name") if fName < "" Then Activeworkbook.SaveAs filename:=fname end if but it would be better IMO to use the built-in functionality. Take a look at GetSaveAsFileName in help. Read it carefully as it is not immediately straight-forward. -- HTH ------- Bob Phillips "David Hall" <David wrote in message ... Hi, I have a large workbook that I use to analyse data that is put into several sheets. Rather than save the large workbook (which is several MB) I would like to run a macro to copy and paste the input information into a new Data only workbook. I will end up with many "data" workbooks but at least these are less than a hundredth of the size. These Data only files would also permit other people to update the data even though they do not have access to the large workbook. Then when that data is required it can be copied back into the large workbook. I have the macros to do all the copy and pasting but do not know how to prompt the user for naming the file in the first place or recalling the desired file when the data is to be "imported". My code at the moment refers - several times throughout its execution - to a workbook of a particular name; in practice it needs to refer to the "selected" workbook. Any ideas? Should I approach this in a different way? Kind regards David Hall |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SHow user form when opening workbook | Excel Discussion (Misc queries) | |||
When opening a workbook, need to ensure user opens in a certain ce | Excel Discussion (Misc queries) | |||
user cannot access his share workbook after opening network path. | Excel Discussion (Misc queries) | |||
Opening workbook in user-defined folder | Excel Worksheet Functions | |||
plotting chart with user selected range from current workbook | Excel Programming |