Search:

Type: Posts; User: scoobster

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Return the column position of found value within a range

    Hi
    I have a named range that sits in range D1 to H1. My program uses the FIND method to check that a value exists in the named range. When the value exists then I want to return the position within...
  2. Re: [RESOLVED] Filter range, copy specific columns and paste to new workbook

    Many thanks - that helped a lot
  3. Re: referencing a workbook and table object from a called function or procedure

    Ah, it's working now. I replaced 'sheet4' with the actual sheet name and now the values is returned. But isn't it better to use the 'internal' name of the sheet in case somebody remains the sheet at...
  4. Re: referencing a workbook and table object from a called function or procedure

    Hello Yowser

    I do pass the 'Thisworkbook' object by reference to the function but when I get an error when the line runs; 9 - subscript out of range. I setup a test to see if the called function...
  5. Re: referencing a workbook and table object from a called function or procedure

    Thanks for your reply Westconn1

    If I am in a function and want to output some values to a table then I need to pass the name of the table + worksheet + column heading into the function so that I...
  6. Re: how can I automate the writing of text value into rows and columns that can vary

    Many thanks for the hint. Code is now working perfectly.
  7. [RESOLVED] referencing a workbook and table object from a called function or procedure

    Hi Forum. Good morning.

    I would like to know how best to reference a workbook and a table object from within a called function or procedure. I have the calling procedure within the worksheet...
  8. Re: Error 1004 (application or object error) : filldown command

    Fixed it.

    I guess it's not possible to use (cells(x,y), cells(a, b) within a range or with the filldown. I just replaced the 2nd CELLS with a resize and the code runs through perfectly.
  9. [RESOLVED] Error 1004 (application or object error) : filldown command

    Hi,

    I have a workbook which is running code and it creates a number of new workbooks. Upon creating a workbook, the code will copy some values to the new workbook onto sheet1 I then want to fill...
  10. Re: Excel 2010 : String comparision : values containing non-uk characters

    Sorry to reply late on this. Been away but wanted to loop back to thanks those who posted a reply or comment. The project went away to the burning issue of the day is no longer keeping me awake at...
  11. [RESOLVED] automate the writing of text value into rows and columns that can vary

    Hi

    I have a workbook that I create from a macro running in another workbook. The macro copies columns to the new (inactive, I guess) workbook into specific columns. So column "A" from the workbook...
  12. Re: Excel 2010 : String comparision : values containing non-uk characters

    Thanks for your reply.

    yes, it is code that I would like. There is a 'pot' of data with 50k row and a list of records that I need to check one-by-one to see if the value appears in the 'pot'.
  13. [RESOLVED] Excel 2010 : String comparision : values containing non-uk characters

    Hi there,

    I need to compare 2 sets of data and flag up where there is either a direct match or a close match. For example, I have a name and a city value in each data set;

    Data Set 1:
    Column A...
  14. [RESOLVED] Enter a value and copy / paste it to all cells in a column where column A has a value

    Hi

    I need to copy a cell value down into all cells in a column where there is a value in column A. So if I enter 'Yes' in cell C2 and there are values in A2 to A300 then I want 'Yes' to be copied...
  15. Re: Returning zip code ranges for a rep

    Superb. Does exactly what I what it to do and very quickly too.

    Many thanks.
  16. Re: Returning zip code ranges for a rep

    many thanks. That is almost meeting my needs 100% except I noticed that I could have a single zip code for a user and the program ignore that in the results. For example;

    1007 223108
    1008 223108...
  17. [RESOLVED] Returning zip code ranges for a rep

    Hi

    I have an Excel workbook with 2 columns (Zip Code and Rep). I want to show the data so that for each rep I can see the range of zip codes. For example.

    This is a sample of data;

    Zip Rep...
  18. Re: set value of cell to 0 based on value of another cell in a TABLE range

    Sorry to come back on this but I have a small issue with the slighly modified code.

    I have validation setup on cells in column 6 such that I can only enter a number between 0 and 100. When I...
  19. Re: error when pasting to a new workbook

    All working fine now so thanks for the input.

    Working code to copy the value of columns C to K onto cell A1 of the newly created workbook is as follows;



    ...
  20. [RESOLVED] error when pasting to a new workbook

    Hi

    I have a routine that copies filtered records from a worksheet into a new workbook. Everything was working fine and then it stopped and I don't see why. Error is '438 0 object doesn't support...
  21. Re: set value of cell to 0 based on value of another cell in a TABLE range

    Excellent code. Worked first time and does exactly what I was looking for.

    Thanks a lot.
  22. [RESOLVED] set value of cell to 0 based on value of another cell in a TABLE range

    Hi

    I have a TABLE range which has 3 columns. Column 1 is called 'Product', Column 2 is called 'Price' and column 3 is called 'Discount'.

    I only want a value in one of these cells for each...
  23. Re: getting a private sub to run on startup

    Isn't that for calling a form?

    Sorry, I should have been clearer in my original post.

    I have a sub routine in 'sheet1' called 'InitProduct' and this is a few lines of code that populates a...
  24. Re: advancedfilter - arrows being removed

    Thanks

    So the arrows going missing is a feature of the advancedfilter command and is not something I'm doing wrong? If it's the latter then I can work around it somehow in the knowledge I'm using...
  25. [RESOLVED] advancedfilter - arrows being removed

    Hi

    I have a table range called 'picklist' and I want to do an advanced filter. All that works fine but when the code hits the .advancedfilter line then the filter arrows are removed. I could put...
  26. [RESOLVED] getting a private sub to run on startup

    Hi

    I have a private sub routine called 'initProductForm' and this does everything I want when called from a click event; initialises listboxes, populates listboxes, sets screen messages to blank,...
  27. [RESOLVED] activeX controls are growing in size

    Hi

    I have some activex command buttons and listboxes on an Excel workbook. Everytime I click the command buttons the text increases in size and just keeps on growing.

    The text within the...
  28. Re: Deleting row within a range now gives error 1004

    All working consistently now. As I have the range as a table range rather than a normal range, I had to use ListObject to get it working.

    Thanks
  29. Re: Deleting row within a range now gives error 1004

    now it works again but I had to fully qualify the worksheet and range on the entirerow.delete command;



    With Sheet1.Range("PickList")

    .AutoFilter Field:=2,...
  30. Re: Deleting row within a range now gives error 1004

    sorry to come back on this again but I'm back to getting the 1004 error with the entrirerow.delete statement. Code is unchanged from when it was running with the exception I added the .autofiltermode...
  31. Re: Deleting row within a range now gives error 1004

    It is strange. I ran that and it showed the range was there. Then I commented out the function call and added some code around what you supplied so that my code now looks like this;



    Private...
  32. Re: Deleting row within a range now gives error 1004

    Hi

    The range exists as I'm only deleting a few rows from it. I checked in RANGE MANAGER and can see it listed.
  33. Re: Deleting row within a range now gives error 1004

    ah, stupid me. Thanks - code tags now corrected.
  34. [RESOLVED] Deleting row within a range now gives error 1004

    The following code is set to delete any rows within the range 'picklist' where the value of column B is set to 'No'. This was working fine but now I just get a 'run time error 1004 - delete method of...
  35. Re: Total records returned by advancedfilter

    Thanks

    Sure, I can use that and drop the reference to the RANGE for this particular check. I was just looking to be consistent as I have used ranges everywhere else in the code. Just want to be a...
  36. Re: Total records returned by advancedfilter

    The range PRODUCT is multiple columns.

    The left most column is always the same column heading (BA) but the length (i.e. number of rows) can vary as more rows are added.
  37. Re: Total records returned by advancedfilter

    I think it is my error that causes this not to work. I have adapted your code to the following so as to incorporate my RANGE rather than relying on the
    A65536 cell.

    My code:



    myRow =...
  38. [RESOLVED] Filter range, copy specific columns and paste to new workbook

    Hi Forum

    I have a workbook with a range called 'picklist' and I want to filter for all rows where the first range column is set to 'Yes'. If any are returned then I want to copy columns C, D, E, F...
  39. Re: Total records returned by advancedfilter

    Hi

    Is it better to use 'resume next' rather than trying to find out the number of records returned? Ideally I would like to have a way to find the number of records in the filtered range as I can...
  40. Re: How to verify if one of two fields is filled in

    Thanks a lot for this and for replying to all other post over the last couple of weeks.

    Code sample looks good. Thanks. I will give it ago within my project and adjust as needed.
Results 1 to 40 of 56
Page 1 of 2 1 2