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

  • Home
  • SEARCH
  • 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 9237631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:34:38+00:00 2026-06-18T07:34:38+00:00

I request your help in sorting out my issues on a small change in

  • 0

I request your help in sorting out my issues on a small change in the below code.
I have code to insert rows while inserting row i would also like to add serial numbers just like 1,1.1,1.2 and 1.3….

The code below is already mentioned in the tool for adding serial numbers, can somebody tell me how the code can be tweaked to achieve the serial number in 1,1.1,1.2 format and if the rows are deleted or inserted it should add the serial number by 0.1 value based on previous serial number

dim m as integer
m = 0
Application.WorksheetFunction.Max(.Columns(columnidCol))
.Cells(r, columnidCol).Value = m + 1

The above code will give the value as 1, when I insert the row, the “columnidcol” is derived from the publicly declared constants as given below

Public Const numberoneCol As Integer = 2
Public Const columnidCol As Integer = numberoneCol

Please help me in modifying the above code.

  • 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-06-18T07:34:39+00:00Added an answer on June 18, 2026 at 7:34 am

    You can store Serial Number in ThisWorkbook.CustomDocumentProperties:

    ThisWorkbook.CustomDocumentProperties.Add Name:="SerialNumber", Type:=msoPropertyTypeString
    ....
    ThisWorkbook.CustomDocumentProperties("SerialNumber").Value = ThisWorkbook.CustomDocumentProperties("SerialNumber").Value + 1
    ....
    dim m as integer
    m = ThisWorkbook.CustomDocumentProperties("SerialNumber").Value
    .Cells(r, columnidCol).Value = m + 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is my HTML code, I need your help to solve 2 issues, I
I'm puzzled here, and kindly request your help. VC2005SP1 swallows this (stripped out) code
i get this dialog while debugging code in visual studio 2008. (your step-into request
I need your help. I have tables using PHP while looping and I need
I need help sorting a gridview, below is my code: Protected Sub TaskGridView_Sorting(ByVal sender
I have the following issue. I request you to please post your suggestions. Problem:
i really need your help. I'm trying to get request token from twitter with
I need your help on the issue below. I'm trying to set a Input
I'm trying to perform a simple html request using jquery with the code below.
Request your urgent help, as always :-) This is an issue with a .cshtml

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.