Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting a standard row through VBA

Who is able to help?

I try to make a piece of VB-coding for copying and pasting lines, but I
cannot manage to hold the line-number in memory.

This is the case:
I try to copy-paste (insert) a line on the row of the active cell. This
lines that has to be copied is a standard line on a standard location.
It has to be this line because of some formulas involved.

So imagine that I have an active cell on row 19 and I have to insert
here. The line to be copied and pasted is on line 6.
I will have to save the row-number in a varianle, because I will have
to perform this action not only on the active sheet, but on some other
sheets as well. (The line to be copied is on the same row-number and
has to be inserted on the same row as on the first active sheet).

How can I (in VBA) record the row number (and only the number)?

In my example I mention row 19, but this could also be row 20, 15 or
96.

Thanks for the attention and reply for this problem.

Remco

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default Inserting a standard row through VBA

x=activecell.row



" skrev:

Who is able to help?

I try to make a piece of VB-coding for copying and pasting lines, but I
cannot manage to hold the line-number in memory.

This is the case:
I try to copy-paste (insert) a line on the row of the active cell. This
lines that has to be copied is a standard line on a standard location.
It has to be this line because of some formulas involved.

So imagine that I have an active cell on row 19 and I have to insert
here. The line to be copied and pasted is on line 6.
I will have to save the row-number in a varianle, because I will have
to perform this action not only on the active sheet, but on some other
sheets as well. (The line to be copied is on the same row-number and
has to be inserted on the same row as on the first active sheet).

How can I (in VBA) record the row number (and only the number)?

In my example I mention row 19, but this could also be row 20, 15 or
96.

Thanks for the attention and reply for this problem.

Remco


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting a standard row through VBA

How such a simple solution is the answer to my problem.

Thanks excelent

excelent wrote:
x=activecell.row



" skrev:

Who is able to help?

I try to make a piece of VB-coding for copying and pasting lines, but I
cannot manage to hold the line-number in memory.

This is the case:
I try to copy-paste (insert) a line on the row of the active cell. This
lines that has to be copied is a standard line on a standard location.
It has to be this line because of some formulas involved.

So imagine that I have an active cell on row 19 and I have to insert
here. The line to be copied and pasted is on line 6.
I will have to save the row-number in a varianle, because I will have
to perform this action not only on the active sheet, but on some other
sheets as well. (The line to be copied is on the same row-number and
has to be inserted on the same row as on the first active sheet).

How can I (in VBA) record the row number (and only the number)?

In my example I mention row 19, but this could also be row 20, 15 or
96.

Thanks for the attention and reply for this problem.

Remco



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
standard deviation Arne Hegefors Excel Discussion (Misc queries) 7 August 6th 06 01:12 PM
Inserting a 'Standard' Metolius Dad Charts and Charting in Excel 3 February 16th 06 03:44 AM
standard form sammy Excel Discussion (Misc queries) 1 July 4th 05 03:16 PM
Standard Modules in VBA Standard Modules in VBA Excel Programming 1 March 15th 05 03:33 AM
Standard Error Maral Excel Worksheet Functions 2 December 4th 04 06:45 PM


All times are GMT +1. The time now is 04:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"