Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to use the rows command. I know how to use it if the row is a
number. For example, I know that this would work: rows(1:1) However I was to use a variable instead of a number. Here is what I have. It isn't working. Thank you. Rows("i:i").Delete Shift:=xlUp |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Adam,
Try: Rows(i).Delete --- Regards, Norman "Adam" wrote in message ... I am trying to use the rows command. I know how to use it if the row is a number. For example, I know that this would work: rows(1:1) However I was to use a variable instead of a number. Here is what I have. It isn't working. Thank you. Rows("i:i").Delete Shift:=xlUp |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
this way, it should be OK. Sub test() I = 6 johndoe = I & ":" & I Rows(johndoe).Interior.ColorIndex = 19 End Sub see ya later "Adam" a écrit dans le message de news: ... I am trying to use the rows command. I know how to use it if the row is a number. For example, I know that this would work: rows(1:1) However I was to use a variable instead of a number. Here is what I have. It isn't working. Thank you. Rows("i:i").Delete Shift:=xlUp |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Adam
Sub test() Dim i As Long i = InputBox("enter a number") Rows(i).Delete Shift:=xlUp MsgBox "row " & i & " was deleted" End Sub On Mon, 10 Jan 2005 14:23:02 -0800, "Adam" wrote: I am trying to use the rows command. I know how to use it if the row is a number. For example, I know that this would work: rows(1:1) However I was to use a variable instead of a number. Here is what I have. It isn't working. Thank you. Rows("i:i").Delete Shift:=xlUp |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Very basic VBA question. | Excel Discussion (Misc queries) | |||
Basic question...sorry | Excel Worksheet Functions | |||
replacing varaibles in formula | Excel Programming | |||
BASIC VBA QUESTION | Excel Programming | |||
Basic VBA question | Excel Programming |