Over 1 million tech questions and answers.

Copy Excel Workbook

Q: Copy Excel Workbook

Hi,

I am working on an Excel 2002 report. I need to be able to create a copy of the workbook, strip it down a bit (for uploading purposes), and let the user save it as he/she pleases.

Is it possible to make an active copy of a workbook without saving it?
Excel VBA help is not being very "helpful" on this matter.

Thank you,
ABentsionov

RELEVANCY SCORE 200
Preferred Solution: Copy Excel Workbook

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Copy Excel Workbook

Hello, welcome to the board!

It is always best if you work from a saved file. This is just generally a good idea. Is there a reason you do not want to save the workbook? You need to save to do what you want. There is a way, but it is more convuluted than just saving your file.

Read other 3 answers
RELEVANCY SCORE 85.6

Hello, advicer
I do not understand why sometime I cannot copy a range from a workbook to another workbook in EXCEL (but I can if i paste the range in the same workbook). My PC is in the network of the company using WinNT 4.1. Please help me
Many thanks
Qan
 

A:Excel: Cannot Copy from Workbook to Workbook

Read other 7 answers
RELEVANCY SCORE 78.4

I got the below code from http://www.rondebruin.nl/copy6.htm site.

Is there anyway of modifying this code so it saves each work with a specified password?

This process is carried out every month and there are 2 lots of 242 (1 set of new account and 1 set of renewal account for loans) new workbooks created so takes an age to open them all and resave with a password.

Thanks in advance for any help.
Sub Copy_Every_Sheet_To_New_Workbook()
'Working in 97-2007
Dim FileExtStr As String
Dim FileFormatNum As Long
Dim Sourcewb As Workbook
Dim Destwb As Workbook
Dim sh As Worksheet
Dim DateString As String
Dim FolderName As String

With Application
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
End With

'Copy every sheet from the workbook with this macro
Set Sourcewb = ThisWorkbook

'Create new folder to save the new files in
DateString = Format(Now, "yyyy-mm-dd hh-mm-ss")
FolderName = Sourcewb.Path & "\" & Sourcewb.Name & " " & DateString
MkDir FolderName

'Copy every visible sheet to a new workbook
For Each sh In Sourcewb.Worksheets

'If the sheet is visible then copy it to a new workbook
If sh.Visible = -1 Then
sh.Copy

'Set Destwb to the new workbook
Set Destwb = ActiveWorkbook

'Determine the Excel version and file extension/format
With Destwb
If Val(Application.Version) < 12 Then
'You use Excel 97-2003
FileExtStr = ".xls": FileFormatNum = -4143... Read more

A:Solved: EXCEL - Copy Every Sheet To New Workbook

'Save the new workbook and close it
With Destwb
.SaveAs FolderName _
& "\" & Destwb.Sheets(1).Name & FileExtStr, _
FileFormat:=FileFormatNum, Password:="xyz"
.Close False
End With

Spent some time and worked it out - lol

Added in the bold section into the save section of the code.
 

Read other 1 answers
RELEVANCY SCORE 76.8

Hi again

I don't know if this is possible or not but I'll lay it out there anyway. I have about 2000 Excel files in drive C:/Documents and Settings etc/. I have a workbook called WW Numbers.xls. I need to copy the file names only from C:\ drive into a workbook called WW Numbers.xls starting in Cell A2. For example, I have in drive C:\ the following files:

WW1.xls
WW2.xls
WW3.xls
.
.
.
WW2000.xls

In a workbook called WW Numbers I want only the file names WW1.xls, WW2.xls .....WW2000xls staring on Cell A2.

I don't want to type in all the 2000 file names so I'm wondering if there is a macro that can do that for me
 

A:Solved: Copy Excel file names from drive C to a workbook

You don't need a macro, you can use something like "FileList" http://www.jam-software.com/filelist/
You can generate a CSV with the file names in which can be opened in Excel, you might only need to insert a column to extract the file name from the full name and path
 

Read other 2 answers
RELEVANCY SCORE 75.2

Hi all,

I really need help with this, as I have tried means to get it right, but I have no experience in VBA and it seem difficult. Any help will be greatly appreciated.

I need to copy specific cells in a form (in Excel format) that is input by users and paste them into the summary workbook.

The form is fixed, but every time someone sends in a new form, I'll need to update the data in a summary workbook. So it'll be constant updating and I need to ensure that a new row in the Summary folder is used for each form that is sent in.

I'm trying to write a macro that is able to automate the data transfer.

Eg. I need to:

copy the data from D6 in the file Form to the celll A2 Summary file,
D7 in Form to B2 etc.
Attached is the form and my summary sheet.

Thanks in advance!
 

A:Help Needed for Excel Macro - Copy specific cells and paste into a Summary workbook

Hi all,

Below is the vba code that I have written.
But the problem is I am not sure how to define the destination workbook as a file, which is also where this macro will be stored.

It does not seem to work when I tried to put ThisWorkbook or Activeworkbook. I did not want to add a new workbook either.

Sub copyWorkbooks()
Dim MyPath As String
Dim SourceRcount As Long, FNum As Long
Dim mybook As Workbook, DestWks As Workbook
Dim sourceRange As Range, destrange As Range
Dim rnum As Long, CalcMode As Long
Dim SaveDriveDir As String
Dim FName As Variant

' Set application properties.
With Application
CalcMode = .Calculation
.Calculation = xlCalculationManual
.ScreenUpdating = False
.EnableEvents = False
End With
SaveDriveDir = CurDir
' Change this to the path\folder location of the files.
ChDirNet "C:\Documents and Settings\chinba\Desktop\ASL Exception\"
FName = Application.GetOpenFilename(filefilter:="Excel Files (*.xl*), *.xl*", _
MultiSelect:=True)
On Error Resume Next

'find the last row
RDB_Last = rng.Find(What:="*", _
after:=rng.Cells(1), _
Lookat:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
On Error GoTo 0
If IsArray(FName) Then
'Loop through all files in the myFiles array.
For FNum = LBound(FName) To UBound(FName)
Set mybook = Nothing
On Error Resume Next
Set mybook = Workbooks.Open(FName(FNum))
On Error GoTo 0
If Not mybook Is Nothing Then
On Error Resu... Read more

Read other 1 answers
RELEVANCY SCORE 70.8

Hello Everyone

I am having some difficulties finding a solution to my problem. I am hoping someone can help or lead me to the right direction.

I have a workbook called Data.xlsm, below is a sample:

ID, Name, commission
1 john 1000
2 eric 2000
3 ryan 3000

Now I have another excel file called Temp.xls which looks pretty much the same as Data.xlsm.

ID, Name, Commission
1 john 200
2 eric 300

I need a macro that will read the Temp.xls and grab the commissions and bring them to Data.xlsm. The commissions need to be summed based on ID.

The final Result on Data.xlsm should be as follows:
1 john 1200
2 eric 2300
3 ryan 3000

Any help would be greatly appreciated.

Thank you
 

A:Solved: Excel Macro - Upload Workbook value from Another Workbook based on ID

Just a quick and dirty solution

Make sure you place this in the same folder as your Temp.xlsm file and press the button

It will open Temp
update the data, if a new Id is in Temp it will add the data and set the commission values in Temp to 0 to avoid running it twice.

I hope the code explains itsefl.

Think of a macro of a step by step instrcution as you would say it out loud.
 

Read other 3 answers
RELEVANCY SCORE 70.4

Hello,
I have a master workbook with 20 worksheets. 5 worksheets in the worksbook are distributed to field reps, but the remaining 15 worksheets are not. What is the best practice for receiving the 5-worksheet workbook from the field rep and importing the data into the 20-worksheet master workbook? If I merely use Copy Sheet I am able to copy the worksheets into the master workbook but then I have to remove the pathname references in each of the copied worksheets in order to map the data in the master workbook - which is quite cumbersome. Suggestions?
 

A:Populating data from one Excel workbook to a master workbook

Hi jpirhalla, welcome to the forum.

Have you tried moving the sheets over. Dragging the sheet from the field reps back into the now-15-sheet book?
 

Read other 2 answers
RELEVANCY SCORE 68.8

I have two workbooks that I am using and I am trying to add one cell's data to another cell in another Excel workbook. It used to be as simple as beginning to "add" another cell's data(from another workbook you just migrate to the other workbook) into a different workbook. It isn't working like it used to in Excel 2003. Cant' speak of it for Excel 2007 as I never had it.

Any thoughts on why it won't work? Any way to make it work?

A:Excel 2010 - Workbook to Workbook Reference?

  
Quote: Originally Posted by Lewiedude


I have two workbooks that I am using and I am trying to add one cell's data to another cell in another Excel workbook. It used to be as simple as beginning to "add" another cell's data(from another workbook you just migrate to the other workbook) into a different workbook. It isn't working like it used to in Excel 2003. Cant' speak of it for Excel 2007 as I never had it.

Any thoughts on why it won't work? Any way to make it work?


Merging Data from Multiple Workbooks into a Summary Workbook in Excel

Looks like it's possible.

Also I would look at the DATA Tab under DATA TOOLS - CONSOLIDATE.

Read other 3 answers
RELEVANCY SCORE 60.8

Hello,

I've been working on a certain workbook and everytime a try to save it an error occurs:

Microsoft Excel for Windows has encountered a problem and needs to close. We are sorry for the inconvenience.

AppName: excel.exe AppVer: 9.0.0.2719 ModName: excel.exe
ModVer: 9.0.0.2719 Offset: 002aa2b3

HELP !!!

Thanks

Mark R

A:Excel 2000 .. When saving a certain workbook excel crashes

Hi, try running a repair from control panel>click on MS office and run change or repair if I remmber correctly.

Read other 1 answers
RELEVANCY SCORE 60.4

Hi,
I'm having trouble with the following code. If I run it as "Sub test()", it works. If I try to run it as is, it hangs up at Sheets("2011 Yearly Summary").Select

HTML:
Private Sub Workbook_open()
Range("A1").Select
Workbooks.Open Filename:="C:\Excel\PT\pt money.xlsm"
Sheets("2011 Yearly Summary").Select
Range("A1").Select
ActiveCell.Range("A1:U36").Select
Selection.Copy
Windows("Treasury Summary.xlsm").Activate
ActiveCell.Select
ActiveSheet.Paste
Range("A1").Select
Application.CutCopyMode = False
ActiveWorkbook.Save
Windows("pt money.xlsm").Activate
ActiveCell.Select
ActiveWorkbook.Save
ActiveWorkbook.Close

End Sub
What I trying to do is import from workbook "pt money"- sheet (2011 Yearly Summary) to workbook "Treasury Summary" each time I open it.
Also what do I add if the workbook that I'm coping from (Workbooks.Open Filename:="C:\Excel\PT\pt money.xlsm")
is already open?

Thankis
Mike
 

Read other answers
RELEVANCY SCORE 59.6

I am trying to write a macro that needs to copy a range of cells from one workbook to another. I am using Excel 2010. The problem I have is that the copied cells link back to the original workbook. How can I preven this? Here is the problem lines:

Windows("Source.xlsx").Activate
Sheets("Analysis").Range("E2:AE3").Copy

Windows("Destination.xlsx").Activate
With Sheets("Analysis")
.Range("E2:AE3").PasteSpecial
End With

Any ideas much appreciated.

Tom
 

A:Solved: copy from one workbook to another

Hi Tom

It depends on what you want the result to look like. If all you want is to copy the data use this in your "Copy" line

Range("E2:AE3").PasteSpecial Paste:=xlPasteValues

But if you want to retain the formulas but with any references to other sheets repointed to the Destination sheets you can add this line

Cells.Replace What:="[source.xlsx]", Replacement:=""

This will not work if a sheet referred to in Source does not exist in Destination.
 

Read other 3 answers
RELEVANCY SCORE 59.6

hi
hope someone can help,
in workbook1, Sheet1, data is entered in the following cells, E4,E13,D1221 and H12:H17
what i would like is, when a command(save) button is pressed the data from these cells is copied and pasted into the next available row in a new workbook or a different sheet in workbook1
if the data is copied to a different worksheet will the data be saved even if the origional data is cleared in sheet1
am not sure if i actually need to use 2 workbooks,
 

A:copy,paste to another workbook

Read other 7 answers
RELEVANCY SCORE 59.6

I have a workbook located on \\server\servershare\type2015
file name: TYPE.xlsx

how do i write the path of the table name in my query.

Any suggestions?
Thanks.
 

Read other answers
RELEVANCY SCORE 58.8

I comprehend that you can use Worksheets.Copy or Worksheets.Move to move a worksheet to a new workbook. But my requirements are more in depth than that, and my VBA is minimal. I have reporting on about 25 different programs, and the program can either be a "A" program or can be a "B" program. I am using this to open the workbook, import a query using ADO, then save the file. However, before saving the file, I want to copy the 2nd worksheet into a new workbook. The requirement set is if it is an "A" program move to a workbook called "A_Programs" if it is a "B" program, then move to a workbook called "B_Programs". Here is the code I currently have:

Code:

Dim NewWb As Workbook
Dim WB As Workbook
Dim CurrentWb As Workbook
Dim WsTData As Worksheet
Dim NewWs As Worksheet
Dim Ocell As Range
Dim GreaterThanExists As Boolean
Dim Type

Type = "B"

Set WB = Workbooks.Open(Filename:="D:\Excel\Mainframe\Reports\FileName.xls")

Call GetAccessDataDAO

Set WsTData = Worksheets("Sheet2")
Set CurrentWb = ThisWorkbook
For Each Ocell In WsTData.Range(WsTData.Cells(2, 45), WsTData.Cells(Rows.Count, 45).End(xlUp))
If Ocell.Value >= Date Then
Set NewWs = Sheets("Sheet1")
Sheets("Sheet 2").Select
NewWs.Rows(1).EntireRow.Cells.Value = WsTData.Rows(1).EntireRow.Cells.Value
... Read more

A:Solved: Copy Worksheets to New Workbook

Read other 10 answers
RELEVANCY SCORE 58.8

Hi,
Is there a way to move/copy a Userform from one workbook to another. I'm making a new workbook and want to use a userform that I already formatted that's in a different workbook. I don't want to have to redo the formatting if I don't have to.
Mike
 

A:move/copy a userform from one workbook to another

Read other 6 answers
RELEVANCY SCORE 58.8

Excel 2000
Windows 98

I have a workbook for my business from 2009 that I want to copy and make work for 2010. Workbook has 33 pages so I'd like an entirely new workbook for 2010 set up just like my 2009 workbook. I have attempted to copy and paste the desktop icon of this workbook to a new area of the desktop and that worked very well except, when opening the new workbook and erasing all 2009 entries, none of the formulas are working and all will need to be reprogrammed. Is there a better way to accomplish what I need to do. The copied w/b appears to have entered the "Twilight Zone".
 

A:Solved: Copy & Paste Workbook?

Read other 6 answers
RELEVANCY SCORE 58.8

Hi,

Does anyone know how do you copy just the formula from one workbook to different workbook without it having the link to the 1st work book?
i.e.

When I copy the formula ='Balloons N1 Sun'!$A$46 from one workbook to another it comes out like ='[TEMPLATE Balloon Lot details Nights 1 Week XX.xls]Balloons N1 Sun'!$A$46 when all I want is ='Balloons N1 Sun'!$A$46 .

If anyone can help thanks in advance.

Thanks,

David.
 

A:Copy/Paste formula from one workbook to another

You need to copy just the text of the formula, not the cell containing the formula.

Select the cell containing the formula. Press F2 for "Edit" mode. With Shift held down, press Home to highlight all the text. Press CTRL+C (shortcut for copy). Press ESC. Switch to the other workbook (CTRL+Tab). Select the cell where you want the formula. Press F2 again. Press CTRL+V (shortcut for paste). Press ENTER.

HTH
 

Read other 1 answers
RELEVANCY SCORE 58.4

In Excel, I wonder how can I copy the formula and the format from worksheet 1 to worksheet 2 - 12? All these woorksheet are in the same workbook. Thank you for the reply.
 

A:How to copy formula from a worksheet to several worksheets in the same workbook?

Should just be able to copy the entire sheet, select all the sheets you want to copy it to, and then just click paste. If there is no extra formula's to avoid, nothing to it.

v
 

Read other 3 answers
RELEVANCY SCORE 58.4

Hi

I have a starnge problem with Excel 2000.

I am trying to copy a merged cell (8 cols x 1 row) to another merged cell the same size on another sheet using a macro. Normally this works fine.

Others started to want access to the workbook so I turned on the shared workbook facility.

As soon as this is done, when I copy the merged cell to the other merged cell it splits the receiving merged cell into it's original eight columns. So all the other relative references in the macro don't work anymore.

Turn off sharing and it works again fine.

What am I missing?
 

A:Copy merged cells in shared workbook

I've experienced the same issue - with no fix found. I had a couple macros that allowed users to enter new data on one worksheet, then did a cut/paste of the new data to a merged cell on the report form. Sharing the workbook caused the macro to fail, unsharing fixed it. Don't know the cause, but it appears to be universal. I just instructed my users to copy the master form onto their desktops, and I would notify them of updates/changes to the master file on the shared drive (the non-shared file!) when they were made, so they could update their desktop version.
Good luck!
 

Read other 1 answers
RELEVANCY SCORE 58.4

Hi
I have a Workbook(User) that contains data for the issues that have been resolved. Every week I need to pull out a copy (certain columns) of the data that meet a certain criteria and paste it into another workbook(Master) for manipulation.
For Instance I need to copy alll the rows that have "yes" as Feedback and paste it into another workbook.
I want Macro to be stored in one file only(Master). I need to report data on weekly basis and want a new file to be created each week.

I have attached the prototype of files that I am using.

Regards
Manjot
 

A:Copy data from one workbook to another which meets the criteria

Welcome to the board.

"Every week I need to pull out a copy (certain columns) of the data that meet a certain criteria and paste it into another workbook(Master) for manipulation. For Instance I need to copy alll the rows that have "yes" as Feedback and paste it into another workbook."

While it's possible that "manipulation" includes other actions you're not telling us about, including the Master book in the process at all appears to be complicating things unnecessarily.

With your User.xls active, you could just run this:

Sub test()
Sheets("Sheet1").Copy
x = Range("A" & Rows.Count).End(xlUp).Row
Range("N1") = "Check"
Range("N2:N" & x).FormulaR1C1 = "=IF(RC[-5]=""Yes"",""X"",0)"
Range("N:N").SpecialCells(xlCellTypeFormulas, 1).EntireRow.Delete
Range("N:N").Delete
End Sub

to get a new book with only the rows from User.xls where Feedback = "Yes". You could then save this new book with the date in the name.

"I want Macro to be stored in one file only(Master)."

Storing it in your personal macro workbook would be better. See "Record a macro" in Help.
 

Read other 1 answers
RELEVANCY SCORE 57.6

Hi, I need an excel Macro that will copy the rows (including the header) and paste into a new Workbook and then attach the workbook to Outlook email to send. It will need to add a message in the body of the email and add the email addresses. I have included a sample workbook to review.
Thank you for you help.
 

A:Solved: Copy rows and header into new workbook and email

Read other 16 answers
RELEVANCY SCORE 57.6

Hi... I'm somewhat new at Excel and really new at Macros.

This is what I'm trying to do:

I have two workbooks -

on the first workbook I have about 1000 rows of informtion with the following six colum headings...
ID# Last First Mid Dorm Decal#

The first five colums are all filled in already. I have to put the Decal#'s in as I get them.

What I need is that when I put a Decal# in (lets say F23) for a particular person, a Macro (or Formula) would then trigger that row (A23:F23) to be copied and then pasted to the next available blank row on a sheet that is located in a different workbook.

The first workbook is called -
Student List_Decals Input (SheetName is ResidentCommuterList)

The second (target) workbook is called -
Veh Plate_Decal Info Master (SheetName is Master Plate Info List)

I don't know if a Formular can handle this type of thing or if a Macro would be better... but if anyone has a good suggestion, I would be greatful.

thanks
 

A:Solved: Macro to Copy & Paste Rows to Different Workbook

Read other 11 answers
RELEVANCY SCORE 57.6

Client has SharePoint 2010 project server.
When the user clicks on a Excel file, the file open in the browser and when the user click on "open in Excel" we receive the below message 
"To open this workbook, your computer must have a version of Microsoft Excel installed and your Web browser must support opening files directly from Excel in the browser."
Below is the browser version 


However when the same is tried/accessed through a browser deployed on a dev machine, it works normally. Below is the version of the IE on the DEV server

What is causing this to happen?
Is there any tool to check the difference between the IE settings on my Desktop and the dev box.

Satyam....

Read other answers
RELEVANCY SCORE 56.8

I have an Excel (2010) template from which I need to create separate workbooks for our range of ocean-going vessels.

Requirement 1
Upon loading the template, I need to prompt the user to enter the name of the vessel.

Requirement 2
The name must be transferred to a particular cell, probably A1, in proper case.

Requirement 3
I then wish to save the workbook using the vessel’s name, in capitals, followed by a space, a hyphen, another space and then the rest of the filename – based on the name of the template.

Example 1: name of template Record of voyage.

Example 2: name of workbook OCEAN TRAVELLER - Record of voyage.

Any thoughts?

 

Read other answers
RELEVANCY SCORE 56.8

When I attempted to save an Excel workbook, I couldn't because the file name had changed to a number. What should I do?
 

A:Can't Save Excel Workbook

Read other 7 answers
RELEVANCY SCORE 56.8

Howdy, kinda new here. Anyway, I've got a doozy I can't seem to figure out. We just installed dual-monitors and now Excel is coming up saying "Not enough resources to display completely." It does this even when Excel is just started, with the blank, new workbook. There doesn't seem to be any screen real-estate issues since there's now double the screenspace. Any thoughts or ideas to try would be greatly appreciated.

-Ted
 

A:Not enough resources for Excel, even with a new workbook.

Read other 13 answers
RELEVANCY SCORE 56.8

I have a shared workbook that when some people open it the formatting does not show the same. Example I have hidden columns, but they don't see them hidden
 

Read other answers
RELEVANCY SCORE 56.8

Tech Support Guy,

I have a question regarding linking two Excel (I am using Office 2003) workbooks and varying worksheets.
Here's what I want to do, using a macro, create a link to a cell in workbook A/worksheet X to workbook B/worksheet X (where X is variable).
Now creating a link is easy, except I want the "link" itself to appear in workbook A.
I tried the following:
Workbooks("Workbook A.xls").Worksheets(Worksheet A).Cells(6, 4).Value _
= Workbooks("Workbook B.xls").Worksheets(Worksheet A).Cells(57, 3).Value
However, Excel places the value instead of the link in the cell. I want both, meaning, you see the value in the cell, but when you highlight the cell, you see the link to the 2nd workbook.

I have also tried the the following:
Workbooks("Workbook A.xls").Worksheets(Worksheet A).Cells(6, 4).Value _
= "='[Workbook B.xls] Worksheet A '!R57C3"
This gets me what I need except as I mentioned, the worksheets vary and I have not been able to figure out how to do use a variable worksheet name in this example.
I appreciate your help in solving this problem
Take care,
RJ
 

A:Excel Workbook Question

See if using the indirect function is the solution?
 

Read other 1 answers
RELEVANCY SCORE 56.8

Hello guys.
Please guide me through building my own tool in Excel.
I need to have workbook WK 1 with macro to modify another workbook WK2 which already have macros in it.
That is my plan : WK1 should have several command buttons first is to find person by ID from WK 2 , copy entire row with persons details to WK1 list 1, another button same but copy entire row to WK1 list 2, than when both lists created, I must have third command button which will : for each person in List1 WK1 will change value in cell 1 in WK2 from none to 1 and cell 10 enters =today date, for each person in List2 WK1 will delete value in first cell of the row in WK2.

I am keep loosing the track of what would be most simple way to do those steps, WK 2 file name is changing every day with date in beginning of the name of file,
 

A:Need help Excel 2 modify other workbook

Read other 13 answers
RELEVANCY SCORE 56.8

I write a few macros for other users, and right now I just request that they rename the workbooks each month (or however often they run it) to the same names and then offer a reminder at kick-off. Something like:
Code:
If MsgBox("Are the workbooks saved as 'Workbook_1.xlsx' and 'Workbook_2.xlsx', and are they both open?", vbYesNo) = vbNo Then
End
End If
Windows("Workbook_1.xlsx").Activate
Range("a3").Select
Etc, Etc
Otherwise, I don't know how to make changes or run actions based on workbooks whose names might change. But is there a better way? I've had some people - those least familiar with automation - forget to rename, ignore the message, and then call with problems. Perhaps there's a way, instead, that asks them to name as variables whatever the sheets are called, though this might require some hand-holding, such as a list of what workbooks are open? I don't know. I'm open to suggestions - just putting it out there.

Thanks!

Windows XP
Excel 2007
 

A:Excel VBA: Prompt for workbook?

Read other 10 answers
RELEVANCY SCORE 56.8

My O/S is Windows Vista and I am running M/S Office 2000 Professional. In the past when using Windows XP I have been able to change which workbook opens when I open Excel. Now with Vista, I have designated 2 different workbooks to open when Excel begins however I cannot delete them form the Excel XLS folder. When I delete them, the screen shows that they are gone however when I strat Excel afterwards, they are back! How can I dlete them and install a new workbook. The standard process shown in the Excel help files is not working. Thank You.
 

A:Excel Startup Workbook

Closing duplicate...........replies here: http://forums.techguy.org/business-applications/672809-revise-excel-startup.html
 

Read other 1 answers
RELEVANCY SCORE 56.8

Hi there

Sometimes I click on the X to close the workbook and I accidentally press NO when the computer prompts me to save the workbook since it usually comes up in a yellow box that does not really capture my attention. This usually happens when I'm in a hurry or late at night when I'm half asleep. Is there some code that makes a message box pop up with a message that says in big bold letters "YOU FORGOT TO SAVE YOUR FILE" when I click on the X to close the workbook? If so, this will save me a lot of headackes.

Mario
 

A:Save Excel workbook.

I am no guru, however I did find this in the hep wizard of MS Excel. Hope it is of some help to you.

Save workbooks automatically as you work
On the Tools menu, click AutoSave.
If the AutoSave command is not on the Tools menu, you must install the AutoSave add-in.
How?
Select the Automatic save every check box.
In the Minutes box, enter how often you want Microsoft Excel to save workbooks.
Select any other options you want.
 

Read other 3 answers
RELEVANCY SCORE 56.8

I created an Excel workbook to monitor my investments. One of the work sheets contains a long column of currency values from an annuity investment with each row showing daily values.

Presently, I manually copy the daily value of that investment and paste it into worksheet # 2 that contains all of my investments. Worksheet # 2 daily refreshes, updates and totals all investments.

My question is this: is there a formula that would automatically copy and paste the daily annuity values from worksheet # 1 into worksheet # 2 without having to manually copy and paste? If so, could you please guide me through the steps to accomplish this?

Many thanks for your prompt attention and cooperation.
Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Professional, Service Pack 1, 64 bit
Processor: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz, Intel64 Family 6 Model 23 Stepping 10
Processor Count: 4
RAM: 4028 Mb
Graphics Card: NVIDIA GeForce 9800 GT, 1024 Mb
Hard Drives: C: Total - 476837 MB, Free - 414208 MB; D: Total - 114439 MB, Free - 21161 MB;
Motherboard: Intel Corporation, DG43GT
Antivirus: avast! Antivirus, Updated and Enabled

<edited by moderator (etaf) to reduce font size - not required default forum font size is adequate >
 

A:Excel investment workbook

Read other 9 answers
RELEVANCY SCORE 56.8

Hi,

I am using Office 2013. I have a workbook which has to be shared. I want to protect it in a way that none of the options can be changes (like I have enabled 'track changes'. 'highlisght changes from users' etc). I do not want that someone turn off the 'track changes' option or as a matter of fact any other option.

They, however, should be able to edit the workbook. Is it possible?

I tried searching but could only see an option to protect workbook structure but noes not protect options.

-regards
 

Read other answers
RELEVANCY SCORE 56.8

I have two workbooks I'm trying to combine in a VBA macro. The first excel spreadsheet is just simply a sheet of 30 columns of data and 5k rows. It adds a new row every day.

The second sheet will be the model with the macro. I would like to write a script that will use a sort of vlookup to the data sheet to pull in specific parts of the datatable instead of searching through the whole big sheet.

For example, see attached. The Model tab lets you input a date or dates in the C column and then it would have to somehow search another WORKBOOK, not within this one as the example shows (for simplicity). Any ideas would be much appreciated.
 

A:Call Excel Workbook in VBA

Read other 9 answers
RELEVANCY SCORE 56.4

****edit: Forgot to mention that this is an Excel issue.

Hello,

I have a userform which brings up 2 list boxes. The list boxes show all open workbooks. Here is my code:
Private Sub UserForm_Activate()
'Populate list box with names of open workbooks.
Dim wb As Workbook
For Each wb In Workbooks
ListBox1.AddItem wb.Name
ListBox2.AddItem wb.Name
Next wb
End Sub

I want to add a button to my userform which will call a macro which does the following:

1) Copies the following range from the Listbox1 selection workbook:
'The worksheet name is "Sales Details"
Range("A9").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select

2) Pastes that selecion (with formatting) to the end of the Listbox2 selection workbook:

'The worksheet name is also "Sales Details"
The pasted values should start in the first row with no value in Column A (i achieve this by
selecting "A9", ctrl+down

Also, is there a way to select multiple workbooks in Listbox1 and paste the selections in each of those workbooks to the end of the Listbox2 selected workbook.

I'm not even sure if this is possible. I have tried combining bits and pieces from other forums on techguy but cant quite get something that works for me.

Thanks,

Brian
 

A:Solved: Copy & Paste selected ranges via Userform Workbook Selection

Hello Brian,

try this code and tell me if it's okay.

Code:

Private Sub CommandButton1_Click()
Dim i As Long
Dim wsSource As Worksheet, wsDestination As Worksheet
Dim rngSource As Range, rngDestination As Range

Set wsDestination = Workbooks(ListBox2.Value).Worksheets("Sales Details")
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then
Set wsSource = Workbooks(ListBox1.List(i)).Worksheets("Sales Details")
Set rngSource = wsSource.Range("A9", wsSource.Range("A" & Rows.Count).End(xlUp)).EntireRow
Set rngDestination = wsDestination.Range("A" & Rows.Count).End(xlUp).Offset(1)
rngSource.Copy rngDestination
End If
Next
End Sub
Notes:
1) Multiselect property of Listbox1 must be set to 1 or 2. This is the way you can enable multiple selection.
2) The code copies whole rows from row 9 to the last used row on each source worksheet. I did this because, usually, this is what people posting such problems want. Also, I found SpecialCells(xlLastCell) somewhat unreliable. Of course, the code can be modified to do exactly what you said you wanted it to do.

Jimmy
 

Read other 2 answers
RELEVANCY SCORE 56

Microsoft Excel 2003 - I need help creating a macro that will link a workbook file with hundreds of other workbooks to create a customer list. All my workbooks are in C:\Documents 2007\Bids\BID____.xls. All files begin with "BID". All workbooks are identical and I only need information from certain cells. (i.e. G8, A6, G6, etc.). I want all the information from each file to go onto one row of the customer list - a new file's information on each row. Does anyone know how to do this? I have spent all day working on it and am about to go out of my mind. I would really appreciate any help. Thanks.
 

A:Excel - Need Workbook Linked to Many Workbooks

Read other 16 answers
RELEVANCY SCORE 56

Hi

Can anyone please assit me on how to make an Excel workbook give me a reminder via Outlook.
I want a reminder that will tell me when a specific task has not yet been completed.
we send requests to a custodian when we a looking for a document. on the excel sheet we enter the date we sent the request, but I want a reminder when the received date column has not been updated if I have not received the documents within 3 days time in order to follow up with the person.

can you pease assist me

regards
 

Read other answers
RELEVANCY SCORE 56

Hi There

I have recorded a macro that opens up a workbook from my C drive as follows:

Workbooks.Open Filename:= _
"C:\Documents and Settings\Mario Pincivero\My Documents\Homes\Salem's Point 1L 40M-2423.xls"

I also recorded a macro that opens a workbook from windows as follows:

Windows("Salem's Point 1L 40M-2423.xls").Activate

I want to combine these two macros to do the following:

If Salem's Point 1L 40M-2423.xls is aready open then do the code Windows("Salem's Point 1L 40M-2423.xls").Activate

If Salem's Point 1L 40M-2423.xls is not open then do the code Workbooks.Open Filename:= _
"C:\Documents and Settings\Mario Pincivero\My Documents\Homes\Salem's Point 1L 40M-2423.xls"

Please help

Mario
 

A:Excel Macro to open a workbook

Hi Mario,

When you say you open a workbook from your C-drive.
Are you executing your macro from within an Excel workbook or how?
What do you trigeer it with or where do you trigger it from?
 

Read other 1 answers
RELEVANCY SCORE 56

Using Excel 2010. I regularly download data from a database which have to be sorted by

column 1 - cell color blue on top, then
column 1 - cell color orange on top, then
column 4 - value, from newest to oldest

the data is always downloaded automatically to a workbook named "ABC", and the worksheet is always automatically named ABC#, with the # changing automatically.

the macro is saved in the personal folder. I tried to record using absolute and then as relative reference. the macro NEVER works when I tried to run in any new downloaded workbook or even I recreated the same data in a new untitled workbook.

the number of columns is always the same but the number of rows varies. there are about (7) cell colors, but only the blue and the orange need to be on top

the recorded macro always indicate the name of the worksheet and workbook on which it was created. is this why it does not work on any other workbook or worksheet?

any help will be appreciated
 

A:Excel Macro Won't Open in Different Workbook

Read other 14 answers
RELEVANCY SCORE 56

It seems to me that I used to be able to set up my own default Excel books and worksheets. I would set formats, toolbars, footers, etc. the way I liked them then save the sheet as “sheet1.xlt” and the workbook as “book1.xlt”, and put these in the XLstart folder. That way, when I opened a new workbook, or inserted a new sheet, the sheets are formatted they way I want them. But that doesn’t seem to work now. I’m using Excel 97 and Win XP. Before I was using Excel 97 and Win98. Did I miss a cog somewhere? It’s been a long time since I did this and perhaps I missed a step.

Don
 

A:Excel 97 Default Workbook/Sheets

Read other 6 answers
RELEVANCY SCORE 56

I have recently bought a new computer and gone from Windows 7 to Windows 10. In addition , I have changed from Office Home and Student 2007 to the 2019 version. The other day , when I tried to load an Excel file (.xlsm) that I have used quite happily before on my previous computer , I got an error message which read as follows :
"Code in this project must be updated for use on 64 bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute"

I developed the workbook some years ago with a lot of help from Tech Support Guy contributors and I am quite ignorant of this latest issue. Is there anyone who can help ?
 

Read other answers
RELEVANCY SCORE 56

I would like to know if it is possible to take my primary workbook (workbookA) and make a secondary copy of it with a different name (workbookB), that will automatically update when workbookA is changed. I need to do this because I will have multiple users running macros that will reference WorkbookA and at the same time the quality department needs to be able to check the workbookB for changes (which will be just be a copy of workbookA). If they open the file that is being referenced by others it will throw errors for the other users.

Is there a simple way to do this without using a reference in every cell?

I am using Excel 2007 on an XP Machine.

Thanks,
Allen Jones
 

A:Create a Reference Workbook In Excel

Is there a simple way to do this without using a reference in every cell?

Click to expand...

That's kind of what I was gonna suggest
 

Read other 1 answers
RELEVANCY SCORE 56

I have a workbook that I want to share with many people so they can all edit at same time. When I share it, they cannot run macos, it errors out with

"Error 1004 Application defined or object defined error"

Any ideas on how to overcome this?

Thanks!
ASM
 

A:Excel - Shared Workbook Macro

The macro is supposed to create hyperlinks... is this a no no? this is excel 2007...
 

Read other 1 answers
RELEVANCY SCORE 56

I have an Excel macro that opens another workbook. If the macro errors out, how can I close the second workbook that was opened?
 

A:Excel Macro -> Close Second Workbook

Read other 12 answers
RELEVANCY SCORE 56

I have a audit template that takes two files and compairs them and opens a new workbook to display the differences. This new workbook is then saved to a specific location for audit reasons.

In the new workbook created, I'm wanting to "remove" all the toolbars and menus so a user can't safe the file to another location by mistake.

Is there a way for the creating template to "insert" macros into the newly created workbook to do this? While I could just create new worksheets in the "creating" template workbook and remove the ones I don't need, I'm trying to keep the size of the file down by not having all the macros that created the new template in the final product.
 

A:Have Excel VBA Create A Macro In A New Workbook

Just for some thoughts on this concept, I would suggest you read this:
http://www.vbaexpress.com/forum/showthread.php?t=26263&highlight=hide+toolbars
 

Read other 1 answers