Creating Custom Tool Bar For Macros In Workbook

Jan 6, 2013

I want to create a custom tool bar for a work book but when I right click in the unused part of the tool bar area the only options I get are customize Quick access tool bar and customize the ribbon.

View 3 Replies


ADVERTISEMENT

Creating New Workbook Then Giving It A Custom Filename?

May 25, 2012

I am building a macro and am just not figuring out how to do this. I am trying to create a new workbook, then give it a name. Simple right? Well, I have the format for the file name to be "mm-dd-yy Transmittal #.xlsx" but I can't figure out how to make the # part of that equation start as 1 but if the file already exists change it to 2, if that exists, change it to 3, and so on. Here's what I have so far:

Code:
Sub Transmittal()
Dim NewBook As Workbook
Dim MyPath As String

[Code]....

I don't think I'm allowed to do "x + 1" so that is probably where my problem is coming from.

View 9 Replies View Related

Using Application.Caller From A Custom Tool Bar Button

May 13, 2006

I have a spreadsheet with a large number of sheets in it and was trying to create a easy and intuitive way to navigate. My solution was to create a tool bar and populate it with buttons. Two Issues:

1) The attached code (ButtonName) works well except if the “Begin a Group” flag is set on a button, the index seems to be one off per flag.

2) How do you set the “Begin a Group” flag from VBA?


Sub CreateNavBar()
Set newBar = CommandBars.Add( Name:="CostBook Navigation")
newBar.Visible = True
For Each mySht In Worksheets
Set con = newBar.Controls.Add(Type:=msoControlButton, ID:=2950)
con.Caption = mySht.Name
con.Style = msoButtonCaption
con.OnAction = "ButtonName"
Next
End Sub

Sub ButtonName()
SheetToActivate = CommandBars("CostBook Navigation").Controls(Application.Caller(1)).Caption
Worksheets(SheetToActivate).Activate
End Sub

View 2 Replies View Related

Excel 2010 :: Using Macros As Navigation Tool?

Feb 3, 2013

I have a 'dashboard' worksheet in 2010 and want to be able to click on a cell in this sheet and have it take me to the assigned worksheet. They are all in the same workbook. e.g if i click on Leadership i want it to take me to the Leadership tab, Skills to take me to the Skills tab etc The 'dashboard' will be the only viewable sheet in the workbook until one of the items on the page has been clicked.

I have a very basic understanding of macros and I'm not sure if this would work or if i should use a formula instead?

View 1 Replies View Related

Creating Find Tool For Directory

Apr 27, 2008

I am preparing Vendors' Directory for our company. This Directory has different products listed in seperate sheets. The names, phone numbers and address of various vendors' are listed in each sheet.

My problem is that I want to create a new sheet with a find tool that will search particular name of the product or the vendor from all the sheets (say product A, product B) and list out complete information in single page.

I have attached a sample excel sheet which is supposed to search the name "Daniel" from sheets - Product A and Product B and list it out in the first sheet. The sample does not work.

View 12 Replies View Related

How To Implement Permanent Macros Inside Of Excel As Tool

Aug 1, 2013

I have a macros, which i dont know when i will need to use them.

I need somehow inbuild them into excel to be able use them in every excel start.

View 3 Replies View Related

Reference Cell In Current Workbook Whilst Using Camera Tool

Jul 17, 2013

I'm making a dashboard and currently using a camera tool to show a sheet in a different workbook.

However the camera shot should show the sheet for the current month. (the workbook contains 12 sheets one for each month)

I was trying to reference a cell within the dashboard workbook in the formula bar to select the correct month.

[Code] .....

This is the workbook being referenced and

[Code] ....

This is what I have to try select the sheet with the right month. W2 contains whatever month it currently is.

I get that this formula is wrong because I'm referencing a sheet/cell in the dashboard workbook right after calling the tracking workbook, I just don't know how to write it correctly.

View 3 Replies View Related

Can't Run Macros Off A Custom Toolbar Anymore

Oct 6, 2009

A couple years ago i made a giant spreadsheet and had 2 custom toolbars to run macros from to manipulate the sheet.

This year i re-did the sheet, meaning all my old data was replaced (it's a giant schedule basically).

However, the Macros in the custom toolbars stayed exactly the same and performed the same function and are directed to the exact same cells, rows, columns, etc..

But now when i hit the buttons on the custom toolbars to run my macros, i get the following message... all the time...

**
A document with the name "NHLsheet.xls" is already open. You cannot open two documents
with the same name, even if the documents are in different folders.
To open the second document, either close the document that's currently open, or rename one of the documents.
**

Trouble is, i have only 1 document open!
There's something in the macros that thinks i'm trying to open a new document but i'm clueless as to where or why.. they are very simple macros
that do not require the opening of any new workbooks..

All they do is point to another sheet within my open workbook, "NHLsheet", copy a particular row from that sheet, and paste it to a specific spot onto another sheet within my workbook, "NHLsheet".

Here is a sample:

View 14 Replies View Related

Sharing Custom Menus & Their Macros

Aug 26, 2008

Our ERP system generates reports in CSV. I have created a custom excel menu, which houses a lot of buttons that launch various macros to format these reports. I have been asked to share these formatting macros with other users.

I understand that the custom menu structures are stored in an excel11.xlb file. My thought was to simply replace the users *.xlb file. This only half worked. I get the menus and the macros, but when the users try to run the macros from the menu excel can't find them because the path is pointing to my user name.

View 3 Replies View Related

Creating A Custom Sorting

Jan 11, 2010

I am trying to create a custom sorting in VB. My sorting needs to be first on column B, then C and last on G. My data does not have headers.

View 5 Replies View Related

Custom Function To Sum Visible Cells Clashing With Macros

Oct 23, 2007

I have a custom function that is interferring with VBA. If I remove the function the VBA works fine, if I put it back to do what it needs to do, the VBA does absolutely nothing. Any ideas on how to make things work together? Here is the custom function and it is in a module where the VBA that isn't working is in the main Workbook page, but it is a Worksheet Change VBA affecting the same page as the custom function.

Function Sum_Visible_Cells(Cells_To_Sum As Object)
Application.Volatile
For Each Cell In Cells_To_Sum
If Cell.Rows.Hidden = False Then
If Cell.Columns.Hidden = False Then
total = total + Cell.Value
End If
End If
Next
Sum_Visible_Cells = total
End Function

View 8 Replies View Related

Creating Custom Data Bar Format

Feb 11, 2014

I'm looking at what appears to be a custom chart. It is a box divided into 4 equal quadrants. In each quadrant is a percentage with the total equaling 100%. In each of the quadrants there is fill equal to the percent that is numerically written in that quadrant. I'll post a picture with this, but if I was talking cells then....

A1 = 15% B1 = 66%
A2 = 4% B2 = 15%

The backround image behind the number is filled up by volume equal to the percentage indicated. They are also color coded with red representing the highest percentage quadrant filled.

To top that, there are little arrows along the sides of each quadrant indicating an average score.

My first question is WHAT TYPE OF CHART IS THIS THING!, and second can this be done in excel?

View 4 Replies View Related

Creating A Custom Format For One Cell?

Apr 14, 2013

I want to create a custom format for a cell for entering in "cup measurements". I want to be able to type in 5, 1/4, 1/16, etc. and have the word "cups" appear after the number in that cell. I formatted the cell to say the word cups after typing in the numbers in my cell using the code "cups".

ex: 0 "cups" works fine for whole number

so then if i change it to 0/0 "cups" is works great for only 1/8 but not 1/16 or whole numbers. Then I looked at other custom codes that already existed in my formatts so I attempted to try this code which I just kinda came up with

_(0/00);_(0);_(0/0); "cups"

well it isn't doing what I want and If I use the 0/00 "cups code and I type in 4 cups the cell then says 4/01 cups.

What does my code need to be for me to show whole numbers and and size fraction without having it look weird?

View 2 Replies View Related

Creating Custom Dropdown In Toolbar

Jun 6, 2007

I work with excel docs that have alot of sheets. I managed to create a vba form that has a listbox populated with the sheet names, that when clicked goes to the respective sheet. The problem is that when the form is open i cannot focus on the excel sheet - the form needs to be closed first.

1 ) Is it possible to make an excel vba form dockable (so it could be displayed on the right where help would be)

Or

2) Would it be possible to create a drop down in the toolbar that would have the sheet names.

I think the latter is a cleaner solution (if possible).

View 9 Replies View Related

Excel 2010 :: How To Assign RELATIVE Macros To Custom Ribbon

Aug 19, 2014

I currently have an excel workbook (2010) in which I created a custom ribbon and assigned several different macros to the buttons.

Long story short, I will be saving several variations of this workbook every so often when I get new data.

The problem is that if I change the name of the file (Save as or Rename), the custom ribbon buttons no longer work. When I assigned the macros to the ribbon buttons, the macros were absolutely assigned.

Is it possible to assign relative macros to custom ribbons?

From research I have done, it appears that custom ribbons cannot be created using VBA. Is this still true?

View 6 Replies View Related

Creating Custom Legend For XY Scatter Plot?

Sep 30, 2013

I need a way to make a customized legend for a scatter plot, is there any way to do that through VBA? I have a scatter plot with some points highlighted green, and some points grey depending on the user selection and need to be able to create a legend based on what the user selects (e.g. Green - Category B, Grey - Category A, etc.).

For some reason I can't get Excel to rename points on the scatter, so I feel like there is only one option: create custom images and align them correctly with labels on the plot.

View 2 Replies View Related

Creating A Custom Button When I Install My Self-made Add-in

Apr 16, 2006

Finally after 3 days of intensive studying VBA, my first add-in pack is ready to be installed in the office. I've got my custom form all ready, now all I need is to have excel create a custom button on the toolbar that calls up my custom form when clicked.

The idea of assigning a shortcut key doesn't really appeal to me. I'll be packaging it up in .xla format. Would be greatful if anyone can direct me on how to add a button to call up my form (only one form in fact).

View 2 Replies View Related

Duplicate Custom Menu Buttons When Creating Them

May 29, 2007

I have a workbook that creates three temporary menu buttons when I open it. These work fine until I try and open more then 1 workbook at a time. This creates duplicate menu buttons (3 times the number of workbooks that I open).

I call up the procedure when each workbook is opened using this code in the "ThisWorkbook" code area: ....

View 9 Replies View Related

Creating Custom Pivot Table Report Filter

Aug 8, 2012

I was wondering if it is possible to create a custom pivot table report filter? I would like to take an existing pivot table report filter and manually add values into it. I would like to do this because I have multiple pivot tables, some with the same values and some with different values and I have a VBA code from Contextures that applies a mass filter to all fields with the same name. So if i could manually add values into one report filter, I could filter from one location and have all my pivot tables update at the same time if they contain the value that i would like to filter by.

View 1 Replies View Related

Creating An Index Of A Directory Using Macros

Jul 11, 2002

I would like to create a macro which will copy the names of the files and folders of a chosen directory into a spreadsheet, effectively creating an index. I don't know how to go about this or even if it is possible. I'm trying to avoid having to do it manually as the directory in question spans 1500 folders...

View 9 Replies View Related

Creating Macros To Search Worksheet

May 2, 2008

Am a newbie in excel macros. pls i need assistance as to how to create a macro that searches a worksheet for a particular word. i wrote something like below but am having problems in it.

Private Sub CommandButton1_Click()

Dim word As TextFrame

If word Is Not Empty Then
For word = "aaaaaaaaa" To "zzzzzzzzzz"
ThisWorkbook.Worksheet.Find
Next word
End If

End Sub

View 9 Replies View Related

How To Delete Another WorkBook Macros Using Macros

Jul 23, 2005

What is the commands or script for deleting a macro automatically using
another workbook macro.

View 9 Replies View Related

Using Macros For Custom Filter Giving 'Or" Criteria And Paste The Data In Sheet2

Sep 25, 2008

When I go one column and Click custom filter and give the command one number and or another numbers ( I Have attached an excel sheet with screen shot) This filters the data, and I need to copy the same and paste in the next sheet.

I have to do like this for about 20 times for 20 sets of data). I have already done this and pasted the data in sheet2. I did everything manually. ( sample sheet is attached) I need a macro to do this work for me.

When I run the macro If get 2 text boxes I can enter the numbers. and click ok,the data has to filtered in sheet1, and result has to be pasted in the next sheet.with the header. Again I will run the macro i will give 2 numbers and the result should be pasted in sheet 2 after the 1st set of data leaveing one row as blank. ( exactly like the sample data in sheet 2). If I run the macro for 10 times giving 10 different numbers, the result should be pasted one after the other in sheet 2.

View 3 Replies View Related

Creating Multiple Charts From One Table Using Macros?

Jun 11, 2013

I have a dynamic set of data, loaded from a server. The columns are FIXED. I will attach a sample of how the data looks.

site_code
report_goup
asm_week

[Code].....

I don't know how to attatch a file here, but the first row is the title row, under it are the values. The columns here are fixed. What i NEED to do, is somehow create something that will make a seperate graph for every different PLATFORM , showing the FPY chaging over time. Time here is the weeks which will always be a rolling 12 weeks. I'm thinking that i need to use MACROS to do this, but i'm not sure where to start.

View 2 Replies View Related

Excel 2007 :: Creating Workbooks With Macros That Work On Other PCs

Apr 20, 2012

I have written a 2007 workbook which contains 4 simple macros. One of the macros automates the process of saving the print range as a .pdf file. It works fine on my pc but when I send it to others to use, when they try the macros, they all return a 1004 runtime error.

View 6 Replies View Related

Creating New Sheets With Macros Based On Column Information

May 9, 2012

I am new to using Macros and have not had great progress building a macros to make my life easier.

What I am trying to do
-In my main database tab 'FW Telecom' Use column A ( a set of numbers) to create a new tab based on that number, with a 'FW' infront IE ( column A shows 11, i want the tab to read FW 11)
-I want to create one for every number in the column
-Then I would like to copy my 'Template' tab to each new tab.
-From there I would like to fill in the information in the new tabs from the main database tab 'FW telecom'
-Since they will all be copies of the original template, i figure i can just get it to pull from the first column A and then fill in the info.

Not too much in theory going on here, just take my database and move the pertinent information to a user friendly look which I set up in 'template'

View 6 Replies View Related

Copy Macros From Personal Macro Workbook To New Workbook?

Mar 28, 2014

I need to copy several macros from the Personal Macro workbook to a new workbook that I need to take to another computer. I need to be able to run the macros on that computer. I can only record macros and make minor changes in the VB editor. I do not know VB code.

View 5 Replies View Related

Make Workbook Code/Macros Unique To Workbook

Sep 12, 2006

How is code or functions kept unique to a workbook? for instance i create a few toolbars that are relevant to "work book 1", however when i open another workbook "2" the toolbars do not function properly or are removed by the opening/closing of the work book, similarly other macros seem to struggle with more than one workbbok open at a time.

View 5 Replies View Related

Creating New Workbook / Copying Sheets And Saving Workbook - Subscript Error

May 30, 2014

Trying to create a new workbook from another open workbook, then copying all the sheets that aren't called "Summary" to that new open workbook and then saving it. I get a subscript error on this line:

[Code]....

View 3 Replies View Related

Copy Macros From Workbook To Workbook

Mar 26, 2009

I have several workbooks that contain the same worksheets. The worksheets within the several workbooks are structurally the same but have a different number of elements within the structure of the worksheets. I've written Macros that accommodate the difference in the number of elements in the worksheets and will perform the same appropriate tasks within all workbooks.

I use one of the workbooks for development and as I make changes in the Macros within this development workbook, I wish to update all the macros in the other workbooks.

I've been Exporting and Importing to accomplish the update. Is there a utility available that will accomplish this task? Something like "Copy all Modules from "Workbook1.xls"

View 10 Replies View Related







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