Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:49:23+00:00 2026-05-28T19:49:23+00:00

In the Excel-sheet for the A column write procedure, which with MsgBox function returns

  • 0

In the Excel-sheet for the A column write procedure, which with MsgBox function returns the column, A1 drawers from the first address of an empty drawer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:49:24+00:00Added an answer on May 28, 2026 at 7:49 pm

    This is not an answer. I am trying to help you ask your question. Do not worry if your English is poor. If you say enough we can guess what you mean. One sentence is not enough.

    Below I have tried to use short, simple sentences. I hope you can understand me. Are my guesses correct? If not, I hope this helps you write a clearer question.

    Is this homework? A first exercise with Excel? Have you translated it with a dictionary? “Drawer” is an English word but there are no drawers in Excel. Do you mean “cell”? A1 is a cell. B5 is a cell. You put things in a drawer. You put things in a cell. This is the sort of mistake English – Xxxxxx dictionaries make.

    Create and open a new Excel workbook. Click Alt+F11. On the right at the top you will see a grey area. On the right at the bottom you will see a white area labelled “Immediate”. Down the left you will see something like:

    VBAProject (Your excel file)
      Microsoft Excel Objects
        Sheet1 (Sheet1)
        Sheet2 (Sheet2)
        Sheet3 (Sheet3)
        ThisWorkbook
    

    If you left-click Sheet1 and then right-click, you will see a menu something like:

    View Code
    View Object
    --------------------
    VBProject Properties
     :     :
     :     :
    

    Click View Code. The grey area will turn white. Here you can enter code for Sheet 1. Is this what you mean by “in the Excel-sheet”?

    I am not going to put code against Sheet1. I am going to use a Module.

    Go to the Toolbar and click Insert. In the Menu, click Module.

    The window down the left will now look like:

    VBAProject (Your excel file)
      Microsoft Excel Objects
        Sheet1 (Sheet1)
        Sheet2 (Sheet2)
        Sheet3 (Sheet3)
        ThisWorkbook
      Modules
        Module1
    

    “Module1” will be grey because it is selected.

    I think you have been asked to: “Find the first empty cell in Row 1 and display its column number with MsgBox.” There are many ways of doing this. Which is the simpliest? I do not know. Here are two ways:

    Option Explicit
    
    ' Both these routines work on the ActiveSheet.  That is, the worksheet
    ' you can see when you switch to Excel.  If this code had been against
    ' Sheet1, it would have worked on Sheet 1 even if another sheet had been
    ' active.
    
    Sub FindFirstEmpty1()
    
      ' This routine uses Offset. Range("A1").Offset(RowOffset, ColOffset) says
      ' I want to look at the cell which is RowOffset rows down from A1 and
      ' ColOffset columns right from A1. 
    
      Dim ColOffset As Long
    
      ColOffset = 0
      Do While True
        If Range("A1").Offset(0, ColOffset).Value = "" Then
          Call MsgBox("The first empty column is " & ColOffset + 1, vbOKOnly)
          Exit Sub
        End If
        ColOffset = ColOffset + 1
      Loop
    
    End Sub
    
    Sub FindFirstEmpty2()
    
      ' This routine uses Cells(Row, Column).  The columns are numbered: A=1, B=2,
      ' C=3 and so on.  Cells(Row, Column) lets me look at any cell in the
      ' worksheet.
    
      Dim ColCrnt As Long
    
      ColCrnt = 1
      Do While True
        If Cells(1, ColCrnt).Value = "" Then
          Call MsgBox("The first empty column is " & ColCrnt, vbOKOnly)
          Exit Sub
        End If
        ColCrnt = ColCrnt + 1
      Loop
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write VBA code which works on my Excel sheet. Range(A65536).End(xlUp).Row
I'm using XLWT to write excel files from .csv and I have the first
my requirement is to read all rows of an excel-sheet in first column that
When retriving Excel sheet Named region it returns spurious column names OLE DB provider
I have an Excel sheet with first names in Column A and surnames in
I was wondering what is the best way to convert excel sheet column names
In my Excel sheet with column Changeset I am getting the changeset like: C:\ccviews\hgdasdff-9302\dfcsz\ahgrt\kjhssl\ASGHLS@@\main\ajsdkljlat\hahdasdhfk\1\test.txt\sub\hsdaklfl\3
I have an Excel sheet with two column, one is a number , and
I am preparing an Excel sheet in which I have to maintain the version
I have an excel sheet, in which i have multiple cells selected, which are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.