Open Side Menu Go to the Top
Register
Ask me anything about Microsoft Excel Ask me anything about Microsoft Excel

10-30-2011 , 08:24 PM
Quote:
Originally Posted by zomg
open word and press Alt+F11 to bring up the VBA editor and then go view > project explorer - should come up on the left hand side if its not already there, right click on Project () and go insert > module then paste the code. put the mouse cursor in the main module and click the little play arrow in the top toolbar and it should ask you to select a folder where the word documents are
It said, "invalid outside procedure." Am I doing it wrong?

Edit: It's highlighting this part after the invalid procedure bit: Wscript.Echo objHyperlink.Address
Ask me anything about Microsoft Excel Quote
10-31-2011 , 10:05 AM
I have two lists of emails (a) (b)

a - customers
b - customers who have unsubscribed

Is there an easy way to remove the row if there is a match?
Ask me anything about Microsoft Excel Quote
10-31-2011 , 11:01 AM
Quote:
Originally Posted by AU2006
So this is probably the most basic question asked thus far, just fair warning.

So is there anyway to make excel default to having the file name & path on the footer? Like I know how to do it for each workbook individually, but I can't seem to figure out how to make it default have it.

Oh, this is for Excel 2003 btw, had a friend create a macro for me (he has 2007) and it did not work. Yes, my company needs to upgrade.
Ask me anything about Microsoft Excel Quote
10-31-2011 , 11:38 AM
Quote:
Originally Posted by Phresh
It said, "invalid outside procedure." Am I doing it wrong?

Edit: It's highlighting this part after the invalid procedure bit: Wscript.Echo objHyperlink.Address
What version of word? are you sure you are pasting it inside a module? PM me skype/gchat details if you want and ill help you out.

Quote:
Originally Posted by JoshK
I have two lists of emails (a) (b)

a - customers
b - customers who have unsubscribed

Is there an easy way to remove the row if there is a match?
in 2007+ try Data Tab > remove Duplicates

Quote:
Originally Posted by AU2006
Oh, this is for Excel 2003 btw, had a friend create a macro for me (he has 2007) and it did not work. Yes, my company needs to upgrade.
see the second post here: http://www.excelbanter.com/showthread.php?t=264910
Ask me anything about Microsoft Excel Quote
10-31-2011 , 01:02 PM
Quote:
Originally Posted by zomg
Thanks for the response, I found that as well when researching, it works for all newly created workbooks going forward, but the problem is:

"NOTE: Existing workbooks are not affected by these settings. "

Almost all the work I do in excel is to existing files, that are either modified or rolled forward from previous quarters.

It's not a huge deal, thank you for the help.
Ask me anything about Microsoft Excel Quote
10-31-2011 , 01:06 PM
Are they all in the same folder or something? if so you could write a function that opens all files in the folder and adds the footer so that all previous ones will have the footer and then use the link for all new workbooks
Ask me anything about Microsoft Excel Quote
10-31-2011 , 02:16 PM
Quote:
Originally Posted by zomg
Are they all in the same folder or something? if so you could write a function that opens all files in the folder and adds the footer so that all previous ones will have the footer and then use the link for all new workbooks
I mean, I guess they're all in the same folder, an example of the file path is:

I:\REFUND\Functionalization\Quarter Close\2011-Q3\Fund 3I\(Subfunds)PCS\(Sections A-I) Balance Sheet Reconciliations\(G) Due to GP

Everything is contained on the I drive, which is a shared drive for our group.
Ask me anything about Microsoft Excel Quote
10-31-2011 , 03:14 PM
Quote:
Originally Posted by AU2006
I mean, I guess they're all in the same folder, an example of the file path is:

I:\REFUND\Functionalization\Quarter Close\2011-Q3\Fund 3I\(Subfunds)PCS\(Sections A-I) Balance Sheet Reconciliations\(G) Due to GP

Everything is contained on the I drive, which is a shared drive for our group.
Try this (follow similar steps that i gave to Phresh like 5 posts up for how to get it to work)

Code:
Sub addFooters()
    Dim targetFolder As String
    Dim fileName As String
    
    Dim currentWB As Workbook
    Dim currentWS As Worksheet
    
    targetFolder = GetFolder
    fileName = Dir(targetFolder & "\*.xlsx", vbNormal)
    Application.ScreenUpdating = False
    Application.Calculation = xlCalculationManual
    While fileName <> ""
        Set currentWB = Workbooks.Open(targetFolder & "\" & fileName)
        For Each currentWS In currentWB.Worksheets
            currentWS.PageSetup.CenterFooter = currentWB.FullName
        Next
        currentWB.Close savechanges:=True
        fileName = Dir()
    Wend
    Application.ScreenUpdating = True
    Application.Calculation = xlCalculationAutomatic

End Sub
 
Function GetFolder(Optional Title As String, Optional RootFolder As Variant) As String
On Error Resume Next
GetFolder = CreateObject("Shell.Application").BrowseForFolder(0, Title, 0, RootFolder).Items.Item.Path
End Function
run the function, select the folder you want and it will add footers to all .xlsx files in that folder
Ask me anything about Microsoft Excel Quote
10-31-2011 , 08:13 PM
prob already answered but- what's a good way for a computer noob/excel beginner to learn the program, or as much of it as necessary for most entry level jobs?
Ask me anything about Microsoft Excel Quote
10-31-2011 , 08:16 PM
how do you move the axis labels on graphs in excel 2010
Ask me anything about Microsoft Excel Quote
11-01-2011 , 10:18 AM
Quote:
Originally Posted by Tumaterminator
prob already answered but- what's a good way for a computer noob/excel beginner to learn the program, or as much of it as necessary for most entry level jobs?
I wrote briefly about it in the OP, assuming you aren't really bad at computers most of what you need for an entry level job you should be able to work out as go

Quote:
Originally Posted by JL514
how do you move the axis labels on graphs in excel 2010
I'm not sure that you can, you could try removing the axis (right click > format axis > Axis Labels: none) and adding your own ones using labels and then highlighting them all and right click > group .. but it could be tedious. Why do you want to move them? could you show a picture of how it is and what you want?
Ask me anything about Microsoft Excel Quote
11-04-2011 , 02:13 PM
is it possible to select a number of rows and delete only the even or odd numbered rows within that selection? getting sick of going through 200+ rows selecting every other row to delete them.
Ask me anything about Microsoft Excel Quote
11-04-2011 , 02:44 PM
Quote:
Originally Posted by 4ObliVioN4
is it possible to select a number of rows and delete only the even or odd numbered rows within that selection? getting sick of going through 200+ rows selecting every other row to delete them.
Without using a macro the easiest way is probably to use a formula in the last column like =mod(row(),2) copy that formula down then add a filter to filter 0's or 1's depending on which you want to delete then delete all and remove the filter.

if you are using a macro you can do something like

Code:
for i = range("A65000").end(xlup).row  to 1 step -2
   rows(i).delete
next i
Ask me anything about Microsoft Excel Quote
11-04-2011 , 03:19 PM
awesome, the 0s and 1s filter works perfectly, ty.
Ask me anything about Microsoft Excel Quote
11-04-2011 , 03:37 PM
Is there a way to convert cells with amounts such as 1089.56 to be formatted into 108956?? And then is there a way to save these excel files into a notepad file where there won't be spaces between the cells??
Ask me anything about Microsoft Excel Quote
11-04-2011 , 04:13 PM
Quote:
Is there a way to convert cells with amounts such as 1089.56 to be formatted into 108956?? And then is there a way to save these excel files into a notepad file where there won't be spaces between the cells??

Assuming the number is in cell A1:

Code:
=VALUE(REPLACE(A1,FIND(".",A1,1),1,""))
Change the cell location (A1) to suit your needs.
Auto-fill down.

If you don't mind the number formatted as text, you can use this:

Code:
REPLACE(A1,FIND(".",A1,1),1,"")

Last edited by SMA775; 11-04-2011 at 04:25 PM.
Ask me anything about Microsoft Excel Quote
11-04-2011 , 04:29 PM
Awesome, thanks!
Ask me anything about Microsoft Excel Quote
11-04-2011 , 08:57 PM
Quote:
Originally Posted by IlliniLou
Is there a way to convert cells with amounts such as 1089.56 to be formatted into 108956?? And then is there a way to save these excel files into a notepad file where there won't be spaces between the cells??
If you want a VBA procedure that checks a complete range and removes
decimal points from all cells within that range then this will do it.
Open Excel and press Alt+F11 to open the VBA editor.
Click Insert > Module
Copy and paste the following:
Code:
 Sub DeleteDecimalPoint()
  'Purpose: Checks each cell's value for a decimal point in a given
  'range and removes it if found. If no deimal point is found,the
  'cell value is left unchanged. This procedure runs on the currently
  'active worksheet.
  'Remarks: Change the range rData to fit your needs. So if the range
  'storing your data is B1 through J1000, change the "Set rData" statement to:
  'Set rData = Range("B1:J1000").
  'This procedure looks for and removes exactly one decimal point. If any cell
  'contains more than one decimal point then run it more than once.
'*********************************************************
  Dim oDecPoint As Object
  Dim rData As Range
  Dim rCell As Range
  Dim WSF As WorksheetFunction
'********************************************************
  Set rData = Range("A1:B5") 'Change this range as needed.
  Set WSF = WorksheetFunction
  On Error Resume Next
  With ActiveSheet
    For Each rCell In rData
      With WSF
        oDecPoint = .IsNumber(.Find(".", rCell))
        If oDecPoint = True Then
           rCell = .Replace(rCell, .Find(".", rCell), 1, "")
        Else
          'Continue looping until all cells are checked.
         End If
      End With
    Next rCell
  End With
End Sub
To run this procedure:
Press Alt+F11 to return to Excel worksheet.
Click Tools> Macro > Macros
Double click on RemoveDecimalPoint

Last edited by SMA775; 11-04-2011 at 09:02 PM. Reason: Spelling
Ask me anything about Microsoft Excel Quote
11-04-2011 , 11:45 PM
Quote:
And then is there a way to save these excel files into a notepad file where there won't be spaces between the cells??
Use Wordpad instead of Notepad to save your files. Worpad will preserve whatever formatting you made in Excel, including borders, column widths, font color, etc.
Ask me anything about Microsoft Excel Quote
11-06-2011 , 08:52 PM
I am working with 2 different spreadsheets. Let’s say spreadsheet A has 10 sheets labeled 1,2,3,4,5,6,7,8,9,10.

The 2nd spreadsheet called B has 4 sheets – let’s say labeled 11,12,13,14.

I want to add sheet 12 and 14 from spreadsheet B and their contents to spreadsheet A.

I tried to simply add 2 sheets to A and label them 12 and 14 and then copy and paste sheets 12 and 14 from spreadsheet B to spreadsheet A. That doesn’t work because the cells are not formatted the same in each spreadsheet.

Any easy way to move pages 12 and 14 to from B to spreadsheet A?

Thanks.
Ask me anything about Microsoft Excel Quote
11-06-2011 , 09:06 PM
Have both workbooks open at a time, select sheet 12 and 14, right click, and move to (check the copy box) workbook A.
Ask me anything about Microsoft Excel Quote
11-06-2011 , 09:18 PM
Quote:
Originally Posted by Harruin
Have both workbooks open at a time, select sheet 12 and 14, right click, and move to (check the copy box) workbook A.
Worked like a charm. Thanks, bud.
Ask me anything about Microsoft Excel Quote
11-10-2011 , 04:44 PM
what's the best way to make a searchable database? Say for instance you have 3,500 cars (by row), and they are organized by feautures (columns).

How do I create an engine to search for cars by feautures?
Ask me anything about Microsoft Excel Quote
11-10-2011 , 05:53 PM
On the fly, use a filter.

Long term, move it into Access and make a simple query.
Ask me anything about Microsoft Excel Quote
11-16-2011 , 11:34 PM
Two things, both sports-related:

1) I run a fantasy golf league in which we keep score by earnings. As more people join the league, it becomes more time-consuming to enter the prize money for all the different players at each tournament. Is there a way to set up an Excel spreadsheet to import the prize money data from PGATour.com or some other source?

2) I run an NCAA pool that is getting bigger every year, and it has gotten to the point where it's almost unreasonable to tabulate all the results myself. I do it in Excel as opposed to hosting it on a website because of the unique scoring system that we use. Points are determined as a multiple of the seed number of the winning team. We have a formula in the spreadsheet that tabulates all the points as long as the seed numbers are filled in next to each team throughout the bracket, but it would be nice if we could link the spreadsheet to something that would automatically update which team wins each game and then assigning points to each person's bracket accordingly.

I apologize if this is a little vague or confusing. I'd be happy to explain further if you think you might be able to help.
Ask me anything about Microsoft Excel Quote

      
m