Tutorial for Recortset connection from Excel to access
Dear all Please send me tutorial connection using recordset Excel to Access in VBA Macro how to its work, logic,syntext,Sql commandto retrive data from access, display in excel, update in access using...
View ArticleNeed macro modify for Student database
Dear all, i need to modify macro, i want to keep only ID column And base on ID column I will search data. Every student ID contains ID= Year-Class-Term-Section-roll. So when ever I will search year...
View ArticleUsing a variable to select data for plotting
Hey all, I am creating a macro that would access a number of workbooks and plot similar graphs in all of them. I am looking to use the bit of code generated by Excel, that I have included below, in my...
View ArticleExcel Pivot Table Macro
Hi All, This is my first post so go easy on me! I have a selection of data which is being pulled out of a database into an excel spreadsheet. I have set-up a recording of the macro (see below), but it...
View Articlesorting cells wit condition
here my problem, i have a sheet which contains in rows several data. my intex is a long for example B1-1, B1-2 etc, i need a macro that searches all the cells containing this index and reorders them....
View ArticleMacro to save sheet as values, save the document using the values in cell b14...
Hi Can anyone help with this. I am trying to create a macro that copies and pastes as values, saveas the content the content in "b14" &"b11" to a specified file. then emails as an attachement to a...
View Articleproblem with " when reading formula's from the database.
Dear All, I created a simple macro which records cell content into the database regardless if this is value (i.e. 5.95) or a formula (+$B$3*$C$7). However if the formula contains some string...
View Article[SOLVED] Swapping 2 cells in a row based on cell contents
Hello all, I'm in the following situation: D................E.....................................F Age..........Town..............................State...
View Articleconsolidate the results into a separate test matrix
Hi Peeps, I have created many test plans, I would like to consolidate the results into a separate test matrix document I have managed to do one via copy and paste special but this doesn't consider...
View ArticleEnable Combobox with Change_Event
Hi, I have a userform with 6 combo boxes I want 5 off them to be disable until the user enter data in the first combo box? This may be easy and i have tried many codes and it's not working. Please help?
View Article[SOLVED] VBA Userdefined Function returns #Value! error
Hi! I'm new to VBA Programming .. ! Please have a look on the code given below. When I call this function it shows #Value! error when value in the variable Q < 8. I've also attached a file for your...
View Article[SOLVED] Remove Message - A File Named X Already Exsists
Good afternoon, Im trying to dump a file out into a location on the system but keep getting an error saying the file exsists do i want to overwrite it, how do i remove the messages from showing and...
View ArticleOn click malfunctioning (Excel 2007)
Good morning to all, I have a little problem and I cannot pin point it. The problem is in my Contracts tab. All codes are running perfectly except an unknown error that I cannot see. I have added an...
View Articlecell counter using COUNTIF
hey i want to count the number of cells within the range A2:A200 where value equals to 3001 for exaple call values are as follows A2 3001 A3 3001 A4 4001 A5 5001 - - A200 3001 and i used "countif"...
View ArticleLAST ROW HELP. For i to n.... where n=last row! Loop help :(
Hi, I want to put a formula in column AG when there is data in column A, from rows 6 to n, where n is the last data row. My code works when I make it "For i=6 To 100" etc, so what's wrong with my n? :(...
View Articleduplicating sheets URGENT REQUEST
Hello everyone, I have a problem with the macro code. First part: I want to duplicate a sheet ( in my case the sheet name is "template") N number of times. This N times value is specified by cell V4 in...
View Article[SOLVED] If then loop needed for Textboxes
Hi all, Can somebody help me with (i guess) an If Then loop to check Textboxes on a userform ?? The code I have so far works but it's getting a bit long Code: If TextBox1 = "" Then TextBox1 = 0 If...
View ArticleHow to know if a file (notepad) is open?
Hello! How to now if Notepad, let's say test.txt, is open or not? Also how to close it or any file. Around internet there are a lot of virtual things as close notepad with VBA, however, so far I...
View ArticleUser-form unique to a specific workbook?
Hi, I have a workbook (Workbook A) that when opened, a user-form also automatically opens. However, if I open another workbook (Workbook B) in excel, the user-form from Workbook A still shows on top of...
View ArticleCreate macro that sorts pivot like value filters - between
I want filter revenue between two numbers for a large amount of customer. I can record a macro that looks like this Sub SegmentD() ' ' SegmentD Macro ' Segment D udvælges ' ' Range("B25").Select...
View Article