Edit data connected file or close after refresh?
Hi there, It's about a simple excel file which has a data connection to another excel file (database table). When you open the first excel file it will refresh automaticly using VB. However, this...
View ArticleIs there an OR type filtering available in Pivot
I need help with Pivot charts. In a pivot chart, we can add several filters. If there are two, then they only act as AND condition. Can we make them as OR filters? The below table has 2 columns....
View Articleadd the value associated with the checkbox into the new worksheet
I am developing a tool and stuck with issues with the checkbox. Following are my queries Background of the existing code: The column A of the worksheet contains multiple values input by the user. The...
View ArticlePrint frim listbox with user defined options
I have the following code that prints out a user selected worksheet very nicely Code: Private Sub CommandButton1_Click() Dim L As Long For L = 0 To Me.ListBox1.ListCount - 1 If Me.ListBox1.Selected(L)...
View ArticleCopying Value if other cell value is "ok"
Hi there, I am currently stuck at some basic vba stuff. I am trying to copy values from column K of sheet 1 to column A in sheet 2, if column A (sheet 1) has the value "ok". A try to visualize my...
View ArticleLoop Code Help
I want a loop macro that looks at data in column H on sheet2 and if in that column there contains the word Data then I want to copy the entire row where the word data is found and then go to Sheet1 and...
View ArticleCan a macro / formula be made to automate data moving to tabs?
Hi, If anyone can help me with this it would be great. Basically the attached spreadsheet has two tabs 'Paste sheet 1' and 'Paste sheet 2' which data is pasted into each week. i then have to manually...
View ArticlePlease help on this simple macro code
The macro below is adapted from a post in this discussion forum. It is used to set the value in cell E1, when the other cell F1 (a list) is selected ("Last reported figure", "Average of last 3Y", or...
View ArticleAuto Fill
Would anyone be able to look at the document attached and tell me why the macro used fills down A2:CM2 to A3:CM3 (sheet 'Personnel (All Fields)')when there is only data present in A2 ('timeware...
View ArticleFormat primary and secondary axes with VBA
Format primary and secondary axes with VBA My code is: Application.ActiveChart.Parent.Name = "graph" 'ActiveChart.SetElement (msoElementPrimaryValueAxisTitleRotated)...
View ArticleMacro in sheet one to create a search for names in sheet 2
Hi, I am using Excel 2010. What formula would i use to enable the following; In sheet one, i am creating a main page with a menu bar. In this menu bar I would like to ceate a macro which does the...
View ArticleCode to rationalise multiple command buttons in VBA
Hi there Would anybody be able to advise me on my problem? I have 63 command buttons on a userform in multipage controls. Each command button, when clicked, does almost the same thing. For example:...
View ArticleI need a Macro that doubles rows when criterias are matched
Hi Guys, It is very important and any help will be very apprecciated please.Unfortunately I couldn't find out how to post an excel table as a clearer example, however you can have a look at the...
View ArticleFind File with partial filename and get path of folder
Hey there ppl, again I am stuck and don't know what to do.... I have cells with names of folders, there are two types of names 12345678 and AB987453. The Directory where I am trying to search the...
View ArticleMacro to hide empty rows
Hi, I would like to create a macro that would automatically hide rows 55 to 215 of the active sheet if the cell on column "A" contain no value (but it might contain a formula). Thanks in advance, Simon
View ArticleRename all files in folder - with a twist!
Hi all, I am trying to open several .xls files in a folder one-by-one, pull data out of them and close them before moving to the next. I have coded this and it works perfectly for MOST records. My...
View ArticleCopy sheets with the same name from multiple workbooks
Hi guys! I found a really useful forum post here, but I don’t really know what I need to amend to get the VBA code to perform in the way that I would like it to. I have a significant number of...
View ArticleExcel macro to check for certain rules and insert comments on a cell
I am trying to create a macro that will automatically review an excel sheet for certain rules: 1. The excel sheet has software test cases 2. If a cell (in column D) has a text value of 'Yes' then the...
View ArticleIs it necessary to pause Macro for Excel to finish Autocalculation
Hi, I am a newbee to VBA. Need your help to clarify below: I have a large spreadsheet with lot of complex formulas. Auto calculation option is already on. It takes few seconds for excel to update the...
View ArticleWorksheet_selectionchange with data validation
Good morning geniuses! I am trying to write a macro that when the TARGET cell is selected it will Copy data from 1 cell to another cell. Simple enough! The problem is that the TARGET cell has Data...
View Article