The problem of subtracting the VBA line number Master please enter

Updated on society 2024-05-20
14 answers
  1. Anonymous users2024-02-11

    I can't fully understand what you mean, what is the standard of "duplicate data", you say that there is no duplicate data in line 5 13, is 13 in line 13 duplicated?

  2. Anonymous users2024-02-10

    I felt as if I was in a fugue, reading the book of heaven ......

  3. Anonymous users2024-02-09

    Undo Time Difference = format(Undo Time - Current Time,"d h:mm:ss")

    Can you post all the screenshots of your cell content and ** for everyone to diagnose?

  4. Anonymous users2024-02-08

    replace mid len 3 stealth functions. You can also do it vertically with excel array formulas. **Nian carries the big as follows:

    sub repstr()

    dim s1 as string, s2 as strings1 = 123456": s2 = 146"

    for i = 1 to len(s2)

    s1 = replace(s1, mid(s2, i, 1),s1

    end sub

  5. Anonymous users2024-02-07

    Numerical precision problem, when a value is assigned to a high-precision variable, there will be an error, you can define the variable as a variant data type, and let the program automatically select the appropriate variable type to do the calculation.

  6. Anonymous users2024-02-06

    sub lxx()

    dim h as integer 'Total number of rows.

    h = 1000 'Assuming that the total number of rows is 1000, change as needed.

    dim i as integer 'Define row variables.

    dim jfor i = 1 to h

    if worksheets("sheet1").cells(i, 2).value = "October" then

    worksheets("sheet1").cells(1, 1).value = i

    worksheets("sheet1").cells(2, 1).value = i

    j = igoto next1:

    end if

    nextnext1:

    for j = 1 to h

    if worksheets("sheet1").cells(j, 2).value = "October" then

    worksheets("sheet1").cells(2, 1).value = j

    end if

    nextend sub

  7. Anonymous users2024-02-05

    This is the bottom minus the top, and the difference is shown after the record above.

    select recordtime, (select top 1 maximum power consumption - t.)The maximum value of electricity consumption from table name where recordtime> as result from table name t

  8. Anonymous users2024-02-04

    select tb1.[recordtime],tb1.[Maximum electricity consumption], tb2

    recordtime],tb2.[Maximum electricity consumption], tb2[Maximum electricity consumption]-tb1

    Maximum power consumption] from [table] tb1 left join [table] tb2 on in (select max(recordtime) from [table] where recordtime<

  9. Anonymous users2024-02-03

    Provide a way to:

    Suppose you have no other primary key in this table, or the primary key is not clear and the default date is unique.

    The name of this table is rtest, the time column is rtime, and the column is rvalue

    select ,max(, select rvalue from rtest where rtime = max( )

    from rtest r1

    left outer join rtest r2

    on >

    group by, the value taken in this way is something like the date that follows |Preceding date |Difference.

    However, the difference in the first line will be null, and you can filter it or convert it to 0 at your own discretion

    This query requires the provider of the sql92 standard to support left outer join, which is now commonly used.

    If your database is more specific, there will definitely be an easier way, and many databases provide row numbers.

    Also, the solution I gave is that the default is that the value may grow negatively, and if you make sure that the growth is positive, then it can be simplified.

  10. Anonymous users2024-02-02

    create table test (id int,counter int)

    insert into test(id,counter) values(1,3 )

    insert into test(id,counter) values(2,4 )

    insert into test(id,counter) values(3,6 )

    insert into test(id,counter) values(4,9 )

    insert into test(id,counter) values(5,13 )

    insert into test(id,counter) values(6,18 )

    insert into test(id,counter) values(7,24 )

    insert into test(id,counter) values(8,31 )

    insert into test(id,counter) values(9,39 )

    insert into test(id,counter) values(10,49 )

    insert into test(id,counter) values(11,53 )

    insert into test(id,counter) values(12,58 )

    select ,

    from test a

    test b

    where = -1

    Give you examples and see if it's what you want.

  11. Anonymous users2024-02-01

    What kind of database is this? Does it support stored procedures?

  12. Anonymous users2024-01-31

    In fact, there are many ways.

    1.For the 2003 version, the row is limited to 65536 and range( can be used"a65536").end(xlup).row, of course, column A must have data, the 2007 version of the row limit is greatly relaxed, to be appropriately changed.

    This method is also very useful.

    3.Through the multi-no-calculation method, the range and count methods are used to calculate the travel number, so I won't go into details, because the above two methods are better.

  13. Anonymous users2024-01-30

    Suppose you get column a, ,

    irow=range("a65536").end(xlup).row this needs to be if a cycle is ...

    for i=range("a65536").end(xlup).row to 1 step -1

    if isnumeric(cells(i,1).value) then

    irow= i

    exit for

    end if

    next

  14. Anonymous users2024-01-29

    The row number of the last numeric value in column a.

    range("a65535").end(3).row

Related questions
13 answers2024-05-20

Dribbling is naturally very important, start to stabilize the left hand and right hand dribbling alone, after a period of time the left and right hands alternately dribble, hobby, you have to practice more, consider the problem of height, I personally think that we usually play with the ball, the shooting ability is more effective than the ability to dribble through, after all, shooting is a direct and more effective means, and there are many people in the inner line when the hard breakthrough is not realistic, so we should pay more attention to teamwork, dribbling, shooting, passing ability has improved is not there is no psychological burden, Physical strength is not something that can be practiced at once, take your time, play half a game first, try to play the whole game after you play well, and then try to play the whole game and follow the whole game, this is all a gradual process, you can't rush.

10 answers2024-05-20

Hello!! The questions are as follows:

One: If it is a disc installation, this problem should not occur, if it is a disc installation, then the problem is that there is a problem with the pressure plate (such as a pirated disk). This game should be around 3G after full installation, if not, it is missing files. >>>More

8 answers2024-05-20

1 There is no such thing as an intelligent processor or a Xeon processor, but the so-called intelligent processor is the latest technology added to the i-series processor. The i7 has this technology. >>>More

7 answers2024-05-20

The drive's self-test and analysis report shows that your third drive is not in a healthy state and suggests data backup and replacement. >>>More

16 answers2024-05-20

It is recommended to use the 2003 version, and I personally think it is better to do, much better than the previous 02 and 00, and it is powerful, and it is very suitable for office use. >>>More