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

Text colors in List boxes

I have a list box on a userform that is based on a worksheet. the list box contains both positive and negative values, and for the negative values I would like to have a different text format. Also how...

View Article


How to put CR/LF into a string?

Hi! Consider you have 3 strings Code: Dim firstLine As String Dim secondLine As String Dim both As String then you like to do something like this Code: firstLine = "abc - this would be the first line"...

View Article


Image may be NSFW.
Clik here to view.

Trouble adding carrage return/line feed to application.inputbox message

Hi, I have the following code (also see file) Code: err_msg_1 = Application.InputBox( _         Prompt:="The input file checking procedure has detected a possible error with input file." & _...

View Article

Missing dates in running total

Hi I have a running total (bank statement) which does not have an entry for every date. I need a macro that will identify missing dates, insert a row(s) with the missing date and complete the previous...

View Article

Cell copies text, but not formatting...

Simple one here, i am copying some text from one sheet to another, which works great, but i need it to copy the text AND the color formatting... Any help? I am using Code:...

View Article


is it possible to edit the value of a calculated cell without messing up the...

i posted this is a different forum section and didn't get any answers at all, so i'm hoping someone here can help me out. ill try to explain what im looking for lets say i have a value in A1, lets say...

View Article

Image may be NSFW.
Clik here to view.

Class hierarchy

Hi All, I want to make this programatically in VBA in excel. Structure.jpg I want to have structure of companies and subcompanies. I can create object with properties(string, integer) but i want also...

View Article

list of items- that requires adding to a colomn on a worksheet but with spaces

I have a list of products. I want to copy the list so I end up with; space space product space then go back to the list and the same thing for the next cell in the list? is this possible

View Article


Adding data from one worksheet to another using a macro button

Hi Wondering if anyone can steer me in the right direction. I have created a spreadsheet where in sheet 1 I have athlete testing data. Then in another sheet I have the database which is a simple sheet...

View Article


Image may be NSFW.
Clik here to view.

=> HOW to use the FIND command to interpret string and assign logical...

hello EVERYBODY ... I need some help for use find command to interpret two specif string a assign logic value i want make this on VBA CODE.. ex: I want read the elements of columm C and find the...

View Article

Image may be NSFW.
Clik here to view.

transpose and count unique values

hi good day i have a worksheet with a few rows of data that i wish to extract the unique values from, then transpose the it but also count occurances bases on those unique values. any help would be...

View Article

compare two xls with N number of sheets..row by row

I have two xls files. One having only one sheet with all the data in it(target xls). I want to compare this sheet with source xls which has data available in different sheets. Also, the source sheet...

View Article

data percentage requirement

Hi all, I have following data on my excel sheet. man man man man man man man man man man john john john john john john john john john john john john john john john john john john john john 10 man cells...

View Article


Merge two sets of "private sub" VBA codes in a single sheet

Hi, I'm quite new to VBA programming and is currently doing copy/paste and some modification programming. I ran into a problem when I tried to combine two different VBA codes which both work perfectly...

View Article

copy rows from multiple worksheets to a new condition based on criteria

hello, i'm new to the forum and need your help: here is the problem: I have multiple sheets with the same format.(all columns have same format) in column "A" i have a value lets say "B1-1". what i need...

View Article


Work_BeforeClose Error... how can I fix this

Hi There, I keep getting the Compile error with this code: Ambiguous name detected: Workbook_BeforeClose.. Is there a way to rearrange the code below so as to not repeat the Workbook before close...

View Article

Image may be NSFW.
Clik here to view.

not able to SUM numbers

Hi all, Please help to sum the numbers in attached sheet. some numbers are not able to sum. Thanks, Sekhar. Attached Files KLP.xlsx‎ (10.0 KB)

View Article


Transfer Data from one workbook to worksheets in a closed workbook by criteria

Hello ExcelForum, This is a cross-post from here: http://chandoo.org/forums/topic/exce...s=1#post-57527 Apparently, I still haven't received any response since yesterday :( so I am trying my luck on...

View Article

Random from multiple lists

Hello! This is my first time posting hear, though I have been using this forum for quite some time now. :) I am creating multiple-choice quiz. I have variety of topics I use e.g. physic, math, material...

View Article

Exit Sub

Afternoon, Would anyone be able to tell me why the following does not work? Code: Sub new_in() ' ' new_in Macro If Range("R3") > "X" Then Range("H3").Select     Exit Sub End If  Application.Run...

View Article
Browsing all 50094 articles
Browse latest View live