integer

  1. T

    Advanced Filter Question

    I'm wondering why my code sometimes works and sometimes doesn't (giving me a Runtime 1004 The extract range has a missing or illegal field name). I'm using .AdvancedFilter to remove duplicate names from a selected column so that each name is only counted a single time. I get the error message...
  2. S

    Macro : IF Condition is not met

    Good day. I would like to ask help regarding conditional setup. So I have a dates that will be filtered based on the condition and will copy paste it. My problem right now is if the condition dates are not available, it will copy all the information. So if the condition dates are not available...
  3. G

    Search for columns for keywords from a list and return any matches to a different column

    Hello and thanks in advance for any assistance. I have a work sheet with two tabs named DATA PULL and LIST. The LIST tab contains a list of keywords (250 words) in column A. I need to search for those key words in columns P and Q on the DATA PULL tab and return any matches to column I(the data...
  4. O

    Retrieve date from MsgBox to TextBox in other Form

    Hello, I got stuck on the following code that shows date selected from datepicker Private Sub select_label(msForm_C As MSForms.Control) '/* Capture the selected date */ Dim i As Integer, sel_date As Date i = Split(msForm_C.Name, "_")(1) - 1 sel_date = FirstCalSun(curMonth) + i...
  5. W

    Creating controls on userform on the fly with VBA

    I am trying to create a dynamic number of labels and textboxes with the following code and it sort of works. However, I want to use a variable to make sure that the labels and the textboxes don't go outside of the userform. I have tried a select case and if else statements but they offset the...
  6. K

    Using variable as Integer or Long

    I have read that it is useful to define a variable taking on integer values as "Long". Yet most examples I see define such a variable as "Integer" which, of course, it is. Can you provide clarification or the thinking behind an integer being defined as "Long"? Thanks, Kerry
  7. M

    Run-Time Error '91"

    Hello Everyone, I have encounter a strange situation, the codes that i have below sometime runs without any error message, but sometime it gives me a Run-Time Error '91': Object variable or With block variable not set Can someone please help to explain why this happens and what can i do to...
  8. S

    VBA Convert Date Macro

    Greetings, I have a macro that I would like to use to convert date values in columns of data. I would like to be able to set the column value to convert with the integer variable 'a'. The material inside the with statement is not functioning. I have two questions. 1)How do I set the output...
  9. S

    selecting variable data form one sheet and pasting it in another

    I'm new to VBA (and coding in general. I've been trying to copy a set of data (client data) from one sheet and pasting it in a specific row. And I want this to happen when the client number equals the client number on the first sheet. This is the code that I've written so far. Can someone help...
  10. Weeble

    VBA change position of a created barcode object

    So I found this code that creates barcodes as an object, problem is the barcode that is created always ends up to the right side of the formula. I've tried to change the X and Y variables, but can't really find a way so that it always posts it below the cell not to the right side of the cell...
  11. r1998

    formula to get max from range selected by criteria

    Dear Friends and Respected Seniors, i have this data in sheet2 starting from cells a1:b9 <colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody> a 8 b 5 c 2 h 4 j 3 k 85 y 65 u 47 i 11 </tbody> I want to...
  12. most

    I don't want the empty rows in the array, I know why but...

    This script creates a lot of empty rows in the arrays. I understand why, but I don't know how to write the code so it won't, some pointers please. Sub GroundogDay() Dim i As Integer Dim Count As Integer Dim ArrDATE(1 To 33) As Variant Dim ArrROW(1 To 33) As Variant For i = 3 To 33...
  13. P

    VBA - Referencing cell colour of other worksheets

    Hello, I am looking to to generate a list of values in a worksheet based on if the cells are coloured in other worksheets. I've posted the code below. My thinking is that in the first worksheet, the first cell will check if C1R1 of another worksheet has a filled background or no fill. if filled...
  14. kelly mort

    Remove comma from a textbox

    Private Sub lstView_DblClick(ByVal Cancel As MSForms.ReturnBoolean) Dim n As Integer, ac As Integer, i As Integer i = Me.lstView.ListIndex With lstView For ac = 1 To .ColumnCount .TextColumn = ac Me.Controls("Rw" & ac).Value = .Text Next ac...
  15. C

    What is 'late binding'?

    Hi everybody, I'm still trying to wrap my head around the idea of 'early' and 'late' binding and I couldn't understand it. I've looked up on google but I don't know how to apply to my code. Basically, I started looking for solutions when I created a shared file but people using different...
  16. E

    VBA compare two ranges of datasets on same worksheet and mark identical sets red and strike through

    Hi there, I'm new here and hope that any of you will be able to help me out. I have a form that has a set of values that is kind of fixed (the range A in the table below) and a range that is dynamic (the range B in the table below(not always in the same collumns)...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top