+ Reply to Thread
Results 1 to 3 of 3

How can these things be done in Excel VBA?

  1. #1
    Registered User
    Join Date
    10-02-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    How can these things be done in Excel VBA?

    I have created a spreadsheet that must be processed and these steps require use of VBA. If I can find out, how to do these basic things, then my task will become a lot easier.

    1) A list exists in Column A, find its length starting from cell A2. If cell A2 is empty then list does not exist. The first empty cell is end of list. Store address of last item in list. List could also be 1 item long.
    2) Where list ends, also store the address of cell at offset (1,1) from this i.e one row down and one column to the right
    3) Column E contains two possible values in each cell like a drop down list basically, either "-" or "Yes". All rows where it says "Yes", the row number must be stored in some variable. For these rows, print the value of column C.
    4) Validate data between two spreadsheets called "sheet1" and "sheet2". Both of them create a list as described in A. The is that, the list may or may not be the same size. But, there must be no duplicate values between these two sheets in column D. If this is so then an error message must be generated.
    5) Also, the value in (4) must not exceed 255.

    6) I intend to use the stored coordinates of cells for (1), (2) and (3) to generate text into output file.

    Now I understand that for anyone here, this description may not make complete sense. I am not looking for a complete solution, just need some guidance. Obviously I have to complete this work on my own, even if someone did it for me and I decided to have more functionality, it would be inconvinient.

  2. #2
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Re: How can these things be done in Excel VBA?

    I think this code accomplishes the first two. idk about the rest
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: How can these things be done in Excel VBA?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User seeing things different in Excel..
    By paguy215 in forum Excel General
    Replies: 4
    Last Post: 06-25-2018, 03:35 PM
  2. Know strange things in Excel
    By panel123 in forum Excel General
    Replies: 0
    Last Post: 04-20-2018, 03:39 PM
  3. Add a few things to excel sheets
    By Djripper66 in forum Excel General
    Replies: 1
    Last Post: 05-27-2015, 05:57 PM
  4. Replies: 3
    Last Post: 11-08-2011, 06:09 PM
  5. Annoying things / Excel
    By Maxwell-5000 in forum Excel General
    Replies: 4
    Last Post: 08-11-2005, 08:05 PM
  6. [SOLVED] Can Excel do things lilke Quicken
    By Justin in forum Excel General
    Replies: 2
    Last Post: 06-17-2005, 06:05 PM
  7. [SOLVED] Can Excel do things like Quicken
    By Justin in forum Excel General
    Replies: 2
    Last Post: 06-16-2005, 07:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1