Edit/Modify 2007 Ribbons

Sep 26, 2008

I want to 'repurpose' some of the menus on the Excel 2007 ribbon, in particular to set paste to paste only values. Effectively I need the equivalent of the following for Excel 2007

Private Sub Workbook_WindowActivate(ByVal Wn As Excel.Window)
Application. CommandBars("Edit").Controls.Item("Paste").OnAction = "New_paste"
Application.CommandBars(" Cell").Controls.Item("Paste").OnAction = "New_paste"
End Sub

.
John Walkenbach suggests the following xml code

<customUI xmlns = "http://schemas.microsoft.com/office/2006/01/customui">
<commands>
<command idMso="Copy" onAction="New_paste"/>
<commands>
</customui>

View 5 Replies


ADVERTISEMENT

Hide & Show CommandBars/Ribbons In 2007

Jul 1, 2007

I am not sure I like Excel 2007 yet, I have been playing around with it all day and while it has some good features, it is hard to fathom in places. I expect it is just a matter of time to get used to it.

With previous versions of Excel, hiding and un-hiding commandbard and toolbars can be achieved in a number of ways, such as with the code below

ActiveWindow.DisplayHeadings = False
Application.DisplayFormulaBar = False
Dim cbar As CommandBar
For Each cbar In CommandBars
If cbar.Enabled And cbar.Type = msoBarTypeNormal Then
cbar.Visible = False
End If
Next cbar
CommandBars("Worksheet Menu Bar").Enabled = False

This does not work in Excel 2007, I have tried many methods but all seem to be redundant in 2007 -

View 6 Replies View Related

Modify/Edit File Properties (Date Modified) Of Workbook

Apr 8, 2008

I want to amend the ' Date Modified' for a spreadsheet. I have just made changes to it - so the 'Date Modified' shows today's date and time. Is there a way of changing the 'Date Modified' so it shows as yesterday's date?

View 3 Replies View Related

Working With 2007 Ribbons: Switches The Ribbon To The "Home" Tab

Aug 5, 2008

I need a macro that switches the Ribbon to the "Home" tab.

View 2 Replies View Related

Modify/Edit File Properties Of CSV File

Jun 9, 2008

I need to modify/edit the properties of a CSV File. (Ex: Title, Subject, Author, Category, Keywords, Comments) through VBA

View 5 Replies View Related

Excel 2007 :: Modify Selections Chosen From Pull Down List?

Aug 17, 2013

I have created a worksheet with Excel 2007, which includes a pull down list. Within this list are 2000 unique numbers in a separate worksheet this data is pulled from. Is there a way to dim or change the color of numbers previously used so that when the list is used again, it is easier to see where I left off?

View 1 Replies View Related

Excel 2007 :: Modify / Transform Daily To Weekly Or Monthly Data

Nov 14, 2013

I have an excel 2007 script that downloads daily stock data and prices. I do analysis and graph the data.

I would like to keep the download the same, but modify my analysis so as to obtain weekly and/or monthly data.

I am sure this is commonly done, and is not rocket science, but so far I am baffled as to the procedure / algorithm to do this.

View 1 Replies View Related

Excel 2007 :: Pivot Table - Link Back To / Modify Raw Data

Jun 25, 2008

Scenario: I have a worksheet full of ~360 tasks. Tasks are broken down into phases, have owners, and have status'. I leverage a pivot table to easily sort my data by owner, or by status. When reviewing the pivot table with others we want to update the raw data. This entails changing worksheets and scrolling to the task in question.

I'm looking for an easier way to update the raw / original data.

Options I've tried to pursue but have come up empty:
Option 1: Excel modification? Is there a setting in Excel 2007 that would allow me to change a value in my pivot table and have it propagate to the original data set (another Excel worksheet)? So far the answer seems to be "no". Is this possible?

Option 2: Hyperlink from Pivot Table to Raw data field.
- I cannot create hyperlinks within PivotTable data cells.
- I have used the "hyperlink()" function OUTSIDE of my pivot table, along w/ a "match()" on a key field in my pivot table to create hyperlinks back to my raw data... But this is prone to breaking.
- Is there a way to enable hyperlinks from within a Pivot Table? I have seen other requests from individuals that had a pivot table with actual hyperlinks (e.g. [URL]...) and they could not 'activate' them.

Option 3: Tool Tip VBA Form w/ Link?

- If I can't create hyperlinks directly in the table, then how about a function so then when i click (mouse over?) a pivot table cell a form appears with a hyperlink back to the source data?

Option 2 and 3 Assume that there's an way to get at the underlying location of the raw data (e.g. "Pivot Table Worksheet!E10" comes from "RawData!C4". I've dug through some VBA documentation at Microsoft.com but came up empty. I know this link must exist behind the scenes - In Excel 2007 when you mouse-over a pivot table cell Excel displays: "Row - Phase - Owner - Status", which is directly out of the raw data table/worksheet. [[This was an incorrect assumption... When i looked at the pivot table tool-tip closer I realize it was just walking through my data :'( row.

What is the VBA Code to revel the source cell? If i can get at that data, (and hyperlinking can be turned on w/in the pivot table...) then I can easily write a script to walk through the pivot table and create links back to the raw data... Not a perfect solution - but it takes away the need to search through the source data for the row I want.

View 3 Replies View Related

Excel 2007 :: Edit Query From Spreadsheet

Apr 11, 2012

I have recently installed excel 2007 how do you edit and ODBC query from the spreadsheet. In 2003 you right clicked on a cell that opened a dropdown where you selected edit query.

View 1 Replies View Related

Excel 2007 :: Edit Links And Still Retain Cell Comments?

Jan 17, 2014

How can i break the links in a row of cells but still retian the cell comments thereafter.

At the moment, the comments dissapear after editing the links in excel 2007 that i am using.

Changing the display (foe cells with comments, show) under file-options-advanced has not really worked.

View 1 Replies View Related

Excel 2007 :: Can't Edit Cell - Unprotected Button On Changes Group Tab Grayed Out?

Jul 28, 2014

I'm trying to change a cell in a 2007 workbook but I'm getting this message:

"the cell or chart that you are trying to change is protected and therefore read only. To modify a protected cell or chart first remove the protection using the unprotect sheet command (review tab, changes group) you may be prompted for a password."

However, the unprotect button on the changes group tab is greyed out (the protect button is available though). The workbook isn't password protected and I'm not being asked for a password. What am I missing?

View 2 Replies View Related

Hide Ribbons Automatically

Feb 28, 2013

Is there a way I can have my file, when opened, have the ribbons along the top of the screen automatically hidden from view, and unaccessible by the user, no matter who opens the file.

If there is a way, is there also a way that a single user (the creator) be able to over-ride this, and therefore have access to the ribbons for editing purposes.

View 5 Replies View Related

Sumifs With Date Range Criteria By Referring To Ribbons

Apr 14, 2014

I'm trying to create a sumifs that has 'before date X' and 'on or after date Y' as two of the criteria.

In the past, I have simple done a DATE(x,y,z) function inside the sumifs, but I'm trying to change this for reasons that would take a little while to get into. Let's just say it would make my coworkers lives much easier.

My hope is to get these date range criteria by referring to ribbons which have the dates in mind in them. Here is the formula I have now, and an example. See the red part of the formula.

Say I'm trying to have before Aug 1, 14 and on/after July 1, 14 as two criteria. FBP column A is where I would have the dates that this criteria would search through:

B1: 7/1/14
C1: 8/1/14
Formula: =SUMIFS(FBP!$G:$G,FBP!$B:$B,"=E",FBP!$A:$A,">="&B1,FBP!$A:$A,"

View 5 Replies View Related

Modify The Menu Bar

Mar 19, 2009

I have some code that loads and unloads a command under the "DATA" menu bar. Is it possible to add an item to the menu bar and put the commands under the new menu item? For example: Add "XYZ Consulting" as a menu bar item so it would like as follows: File, Edit, Insert, Format, Tools, Data, Window, XYZ Consulting.

View 5 Replies View Related

How To Modify Columns Using VB

Aug 21, 2007

I am importing some external data and I need to move/modify columns using VB. My spreadsheet looks like this: ....

View 9 Replies View Related

Modify The Code

Jun 12, 2008

I have a code here, which thanks to Jindon helps on yesterday, But now, I want to change the code to count by column instead of rows, to continuous copy & paste my date,
How can it to modify:

Sub test()
Dim home As Worksheet
Dim Filename As String, myDir As String, fn As String
Set home = ThisWorkbook.ActiveSheet
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = False
If .Show = -1 Then
Filename = .SelectedItems(1)
myDir = Left$(Filename, InStrRev(Filename, ""))
fn = Mid$(Filename, InStrRev(Filename, "") + 1)
With home.Cells(Rows.Count, "E").End(xlUp)(2).Resize(2)
.Formula = "='" & myDir & "[" & fn & "]MAN_SUM'!k6"
.Value = .Value
End With
End If
End With
End Sub

View 9 Replies View Related

Modify (PDF Code )

Feb 9, 2010

Find below a vba code that i attached to a button that converts my print area in excel to PDF via Cute PDF writer.

Sub PDF_Sheet()
Dim Filename As String

With ActiveSheet

Filename = .Range("A1")
.PrintOut Copies:=1, ActivePrinter:= _
"CutePDF Writer on CPW2:", Collate:=True

SendKeys Filename & "{ENTER}", False
End With

End Sub

I need a VBA code for the Excel sheet that i am cuttently working in that will do the following:

i have text and pictures in range O86:W97 that must be automaticaly romoved & replaced by another range after the above mentioned code hase complete

the range that must be replaced with the following,
O101:w112 Pdf code must run then
O113:w124 pdf code must run then
O125:w136 pdf code must run then
O137:w148 pdf code must run then
O149:w160 pdf code must run then

note that the ranges run in a sequence 101to112 then 113to124 then 125to136 and so on

Now this needs to be repeated 190 time starting from range O101:w112. The range O86:w97 forms part of my print area of A1:W97, this means i will have 190 PDF saved pdf sheets when i the vba code is complete.

View 9 Replies View Related

Modify Score Sheet

Dec 27, 2008

I have one excel file with three sheets marked 1,2 & 4

Sheet 1. is the place we add the description and the member number. When a member number is entered it gets the member name from sheet 4.

Sheet 2 is the page I need to change. Currently we can enter any score number in each box between 1 to 5. If we try to enter other numbers we get an error message.

I need to change the form so we can enter 1 to 10. Any other number needs to generate the error message.

View 4 Replies View Related

Modify Last_Cell_Value Module

Jan 3, 2007

I use the code below to automatically update formulas with the most recent data added daily to my spreadsheets. Can I copy this module, edit it so that instead of finding the last_cell_value it finds the value one_week_ago, and apply it to the same spreadsheet that the Last_cell_value module is used?

View 9 Replies View Related

Progammatically Add/Modify The Validation

Feb 15, 2008

I am facing a problem with programmatically Add or Modify the Validation of cells...

The sample code in the Excel 2003 VB Reference is:

View 11 Replies View Related

Modify ALL Files In A Folder

Jan 6, 2009

I've (almost) got a macro that modifies & saves a file. I don't want to post it yet because I need to clean it up and I've got a ton of REM'd out statements that I need to flush before I go public....

How can I modify it to open each file in the folder? I'm looking at several thousand files that need to be changed and put away in the correct folder.

(and I say almost because I had it and accidently ran it on my personal workbook and it deleted itself....

View 9 Replies View Related

Run Two Macro When I Modify One Value In A Cell

Feb 9, 2009

I need to run two macro when I modify a value in a cell

Here is the code for the macros:

View 14 Replies View Related

Modify This Code To Save As .CSV?

Sep 28, 2009

modify this code to save as .csv? I tried just putting it after the file name and that didn't work.

View 2 Replies View Related

Modify Ranking Code

Jan 30, 2010

Is it possible to modify this code so that it will give the lowest values the opposite ranking from which it is now. (Please take a look at the example sheet)....

View 5 Replies View Related

Macro To Modify Several Worksheets

Jun 21, 2013

Due to the lack of time and not being able to make it work otherwise this is what I have right now:

If Range("g59") = 1 Then

Sheet1.Activate
Application.Run "Edit_view"
Sheet3.Activate
Application.Run "Edit_view"

[Code] ...

There was a formula to enter sheets names in a cell range (ie: A1 would have value SHEET1, A2 SHEET2, etc) and use a FOR loop to cycle through the named sheets.

View 1 Replies View Related

Modify Multiple Spreadsheets At Once

Apr 28, 2008

i have admit forms for multiple patients, about 200 or so already done, and its set up to make an upload sheet, which we then add all of them to one big file to import to access. i am in the process of cleaning things up, but we need to add a formula to a cell to determine length of stay, and several similar things, but i'd like to not have to go and do it file by file.

is there any way to update all the files at once? some kind of automation? then changes would be in the same cell for each file.

or maybe some way to do a batch modify or something, so it can make the change, and run the two macros, one to make upload for file, one to dump it in the file that goes into access.

View 9 Replies View Related

Modify This Code To Add-up Numbers In COL-D

Jun 20, 2008

It's a linked post from:
[url]


I managed to do the combine the row if column B matches. However column D(quantity, number value), i want the quantity to add-up if column B matches. Any idea how do I modify the code below to do that?

for example:
TDG-**002 Tuna Cheese Pizza Bar (KG) KG 30
TDG-**002 Tuna Cheese Pizza Bar (MG) MG 30
TDG-**002 Tuna Cheese Pizza Bar (KG) KG 30

will combine to become
TDG-**002 Tuna Cheese Pizza Bar (KG) KG 60

View 9 Replies View Related

Modify Formula From Sum To Count

Aug 8, 2008

Hi I have these formulas that look in a specific column and if the argument is true then it sums the numbers in the same row but different column.

I need it to count instead of sum. These are array formulas so in order for them to currently work you must press ctrl shift enter.

{=SUM(IF('sheet1'!I7:I510>D7,'sheet1l'!G7:G510,0))}

{=SUM(IF( 'sheet1'!I7:I510>B8,IF( 'sheet1'!I7:I510

View 9 Replies View Related

Modify To Calculate Numbers Only

Aug 14, 2008

I'm using sum to calculate numbers can I modify it not to calculate numbers? like it'll return blank or something else. Because it calculates alphabets in a row and returns a 0.

tSumthing = "=SUM(RC4:RC[-1])"

then based on the 0's I got above, it'll delete the row. I got diffculty modifying the formula below.
Columns(1).SpecialCells(xlBlanks).EntireRow.Delete

View 9 Replies View Related

Modify A Lookup Function

Nov 1, 2008

i use the formula below in a wb. When it runs its searches col A for what ever is in H36. Is there a way to make it search col A & B for what ever is in H36?

=IF(ISNA(VLOOKUP(H36,'PRICE-GAS'!$A$149:$N$6000,5,FALSE)),0,VLOOKUP(H36,'PRICE-GAS'!$A$149:$N$6000,5,FALSE))

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved