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

Looping dates continuously with user option of stopping

Hi all I am new to the world of vba and I need some advice I have a spreadsheet with a column for dates, sales data, and buyer. This is a spreadsheet in a share folder and so needs to update...

View Article


can printers be controlled programmed from excel

hi have a question can a printer be controlled within excel ,i know there is a print dialog box that can be called,but can it go further and be controlled through vb ,a macro to pick printer and a4...

View Article


[SOLVED] How to remove date in one cell when another cell's contents are...

Hello, I have a drop down list in the cells of column E. When I select a item from the drop down list, the date is inserted into the cell of the same row in column B. I would like to adjust the code to...

View Article

Userform ComboBox.List Location and Active Sheet Issues

Attempting to populate Combobox within Userform Initialize event. The cbo is populated from an advanced filter / unique list on a hidden worksheet. The cbo properly populates when that worksheet is the...

View Article

Save workbook to folder of user choice

I have a macro that saves an individual worksheet as a new workbook. For example, I have a workbook with the following 10 named worksheets: SR_01 SR_02 SR_03 SR_04 SR_05 SR_06 SR_07 SR_08 SR_09 SR_10...

View Article


Passing Data from Excel to Sharepoint

I was wondering if it is possible to pass data from excel to a SharePoint list using VBA. Any help on this would be greatly appreciated.

View Article

Convert To Number

Hello, I have a set of data (numbers) that are stored as a text but need to 'convert to number'. I get the green arrow on the top left corner of each cell and can manually 'convert to number' but I...

View Article

Image may be NSFW.
Clik here to view.

InputBox Function not as flexible as needed

I'm using a simple inputbox function to query a number of variables from the workbook user, to be used in a new object created from a class module. I'd like to name the new object a unique...

View Article


Image may be NSFW.
Clik here to view.

Creating one excel sheet from multiple work books that we have.

We got thousands of work books in which we have tescases. One test case per one workbook. Now we want to import all of them to a tool which kind of accepts all the test cases in one sheet. so i want to...

View Article


Image may be NSFW.
Clik here to view.

SUMIF with color criteria

Hi All, I’m in trouble creating a macro that will sum products based on color criteria. I attached a file how should the report look like. The first sheet has to contain production quantities and all...

View Article

Is this a good way to handle error?

Code: Private Function F1() As String     On Error GoTo errHandler         Open "c:\pfms.txt" For Input As #1 exitHere:         Exit Function     errHandler:     MsgBox "Error " & Err.Number...

View Article

IE.document.getElementByID returns run-time error '91'

Hello, I have a VBA module that opens IE and tries to enter a user name into the text box. I have references to the MS HTML object library and the MS internet controls library. The code works fine with...

View Article

Creating a new tab and filling in one column based on user responses

Hello! I have a spreadsheet (attached) that has a "Project Build" tab and a "Template" tab. The "Project Build" tab has a list of typical project tasks in Column B, and a series of Check Boxes in...

View Article


[SOLVED] Send Cursor to Certain Cell

Hello: I need a VB Macro to send the cursor to Cell A30 when CTRL+ALT+9 is pressed. Thanks

View Article

Charting Issues

Hi Everyone, How can I change my chart in userform from the combobox? I have just two charts I am testing from and can't figure out how to switch from one to the other. Code: Dim iChartType As Long...

View Article


Image may be NSFW.
Clik here to view.

Looking For A VBA Solution To Replace Having To Generate Additional Tables

I am A relative novice to VBA and I've come across a challenging problem that I've been tasked to solve. Attached is a workbook that I hope is enough to illustrate my question. If a similar question...

View Article

Image may be NSFW.
Clik here to view.

Calculation Fuel cost automatic

Hi all could you please help me is there any macro that calculate fuel automatic? i have attach file with explain the problem in inside Attached Files JE-LOGBOOK Jan13test.xls‎ (516.0 KB)

View Article


Delete all columns except last 4 used ones

How would you go about writing vba code that deletes all columns in the current worksheet except the last 4 used columns?

View Article

Inserting query tables

When using ActiveSheet.QueryTables.Add how would you get the code to overwrite whatever is in the worksheet as opposed to adding new columns?

View Article

Select images - auto attach to outlook email

Hey Guys, I have a worksheet that has product related images in it. Is there anyway to select one or multiple images, and press a button that opens a Microsoft Outlook New email window with these...

View Article
Browsing all 50054 articles
Browse latest View live