Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Browsing all 50076 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

Need 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 Article


Using 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 Article

Excel 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 Article

Image may be NSFW.
Clik here to view.

sorting 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 Article


Macro 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 Article

problem 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

Image may be NSFW.
Clik here to view.

[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 Article


Image may be NSFW.
Clik here to view.

consolidate 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 Article


Enable 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 Article

On 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 Article


cell 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 Article

LAST 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 Article


duplicating 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 Article


How 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 Article

User-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 Article

Create 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
Browsing all 50076 articles
Browse latest View live