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

End If without block If

Part of a macro is below. There is an alternative block for 'PN. To get over the problem do I have to put "End if" after " ActiveSheet.Paste" then begin another "If" block? I'd prefer a method of...

View Article


Displaying data in a listbox

Hi This is my first post on this forum, so sorry if I doing any thing wrong or not with in the rules. The problem I have is that I have written a piece of code in VB excel windows 7. The code looks in...

View Article


Image may be NSFW.
Clik here to view.

Copy data and file name into master sheet

Need to copy data to sheets("master"). Also need populate the sh.name associated with the data into column A of the master sheet. I have 20 worksheets to go thru, how should i loop it? Thanks. Attached...

View Article

Stop Excel asking if I wish to run one of my own vidoes

I have recorded a number of videos which I wish to run by simply clicking on a cell into which I have put a hyperlink. When I click on the cell the following message always appears: Opening C:\User\......

View Article

Finding string not finding

Being fairly new to VBA, I have had some luck finding problems and modifiying code, however I have a problem that has had me stumped for over a day. I want to look for a name in a list, but I get an...

View Article


Pull data with specified criteria

Good day Excel Forum Looking for some help on a macro that will enable me to extract data by specifying a criteria. I get 5 spreadsheets every hour. These have cumulative data for each unique name...

View Article

How to ammend a GUI made in Excel ??

Greeting All, I have downloaded a file in "xls" format from internet. It contains a Market Analysis Questionnaire in GUI Format, you answer the question and based on your answers the file generates the...

View Article

Image may be NSFW.
Clik here to view.

Userform Dependent Lists fails to display when OptionButtons added

Hello, I have modified a Parent/Child/Grandchild Dependent Listbox example that was kindly posted by D.Kusleika of Dailydoseofexcel. I have added some option buttons to the Userform, but in so doing,...

View Article


Selecting a range of cells using ActiveCell where the start point is variable

Hi All I'm trying to develop a code that selects a range of cells, copy's and pastes them to another sheet. The problem is that the second set of data is on the same sheet as the first set I can...

View Article


I need help writing an Macro that looks up values and copies and pasts them...

Hi All, I have an spreadsheet that currently hold data from the payroll system and it is sorted by Column "J". I want (reads "need) an macro that will look up values in J for example "Melbourne Cup"...

View Article

Image may be NSFW.
Clik here to view.

[SOLVED] VB Projects and XLM Sheets cannot be saved in a macro-free workbook.

Hello XL Guru, I got no idea why my new work book not working. While the old workbook i used the same code is doing fine but not this. Code: Private Sub Workbook_Open() Dim wSheet As Worksheet     For...

View Article

Image may be NSFW.
Clik here to view.

create macro to update master calendar

Hi All, I am trying to create a master calendar, where I can filter 24 different peoples calendars through. I'm nto sure the best way to do this. I have created the attached template. I do not have a...

View Article

Image may be NSFW.
Clik here to view.

Update query via Excel VBA - incorrect Sql statement

Hi All, I try to create an update query in order to update an access table. See the files attached. Two questions, does somebody have some suggestion how to write the sql statement in the correct way?...

View Article


PastSpecial overwrites where I want to append

Hi there, I am new at VBA and I am working on my first project. I have several detailed workbooks from which I want to copy a certain table to a central workbook. Below is part of the code that I have...

View Article

Preventing Duplicate Entries

Hi I have a userform where users enter data and select a date and a time Worksheet ("CVdata") Column A = Date Column B = Time Column C = Gen Debt Userform Date text box = CVdate Time comboBox =...

View Article


Macro for a database

I don't use excel that in depth so I had posted this in the formulas area and they kicked me to the curb and said come here lol so here I am. Quote: I have been searching in here for a certian formula...

View Article

Clear All of The Unlocked Cells Except 1 Particular Cells

Hi All, i got this code from Google, Code: Sub ClearUnlockedCells()       Dim wks As Worksheet       For Each wks In ThisWorkbook.Worksheets         On Error Resume Next         wks.UsedRange.Value =...

View Article


A macro for crypto!!!

Hello everyone. I just want to say that this macro will make many things easier for me. Let me explain. I'm going to write a novel or say some kind of thing like that and I need a private language...

View Article

How to add multiple cells in VBA code & prompt with msgbox when cells incomplete

Hi, I have the code below & want to add ranges rather than individual cells, for some reason when I add a range i.e B11:B22 it gives a type mismatch error. I know it will be something simple but...

View Article

Sending out sheets to different people

Hi All, Ok I have an workbook that has 8 different tabs in it however I need to send each tab to one recipient. The email addresses are in an sheet called "Deduction Dashboard" and are from ranges...

View Article
Browsing all 50094 articles
Browse latest View live