+ Reply to Thread
Results 1 to 5 of 5

how to create a range with fixed columns and changing rows

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post how to create a range with fixed columns and changing rows

    hi i am new to this forum, i am also new to VBA in excel. i have been able to do some scripting for my solution where i can select a number for employees and the number is transferred to another sheet and populated the respectibe number of rows = number of employess, i will be send the sheet to the number of employees who will be populating the sheet, i have created a button on the sheet which will run a macro to find empty cell in mandatory columns and is the value is empty need to send a message as "incomplete fields", i am not able to identify how i should go about it should i search by range or each column??
    some advice on this would be greatful.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: how to create a range with fixed columns and changing rows

    Hi shettyp,
    Welcome to excel forum.
    Can you attach a sample workbook?
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    01-15-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    3

    Checking for empty cell in non adjacent columns and variable rows

    i have been able to write the code, for some reason it does not allow me to process the If loop, i have no idea how to fix it, the code i have is below
    Please Login or Register  to view this content.
    Last edited by shettyp; 01-17-2012 at 07:45 AM. Reason: code included as per forum rules

  4. #4
    Registered User
    Join Date
    01-15-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: how to create a range with fixed columns and changing rows

    hi Pike, i have changed the approach for the solution and have a updated code but i am not sure if the code is working, it does not give me any error, i am not sure if the code is looking for each row for empty cells
    Please Login or Register  to view this content.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: how to create a range with fixed columns and changing rows

    Hi shettyp

    this reads ok ,,but give it a test
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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