Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default absolute references etc in VBA


Hi all
I am not an experienced writer of VBA but I would like to capture m
next problem since this comes back quite a lot.

As you can see in the attached Excel file I have several columns o
varying length. To the right of each column there is an empty colum
(coloured yellow).

What I need to do is calculate the rank of a number in the column nex
to the yellow cells (e.g. range c8..c11) As you can see I need t
repeat this in this file alone several times, and this is only 1 o
several 100s of files!

I know what steps to take when doing it by hand but how can I captur
the next actions in VBA?

1. type =Rank(
2. go to the top cell of the range I need to calculate the rank an
select this cell and type ";"
3. go to the same cell, type "." and go to the bottom cell of th
needed range (simply "end-down" won't do the trick since sometimes th
range of cells has blanks)
4. make the selected cells "absolute" by typing F4
5. "enter"
6. copy the range with the ranks which I've just made and make th
values absolute through "edit-paste special and choosing values"

This last procedure is needed because I need the outcome in a
different program

I hope it is not too much asked but thanks for your helping hand

Hei

--
Hei
-----------------------------------------------------------------------
Hein's Profile: http://www.excelforum.com/member.php...fo&userid=2474
View this thread: http://www.excelforum.com/showthread.php?threadid=53134

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default absolute references etc in VBA

Hi Hein,

I believe that attachments are stripped when sent to this forum. At least I
haven't seen any for months and it seems I read a similar reply to an
attachment post.
If you know how you could post a link. I don't know so can't help you
there. Some folk post a screen shot with a link and I don't know how to do
that either.

But, to your problem.
Turn on the macro recorder and do all the stuff you listed and take a look
at that. If the code needs tinkering with, you can post the code along with
details.

HTH
Regards,
Howard

"Hein" wrote in message
...

Hi all
I am not an experienced writer of VBA but I would like to capture my
next problem since this comes back quite a lot.

As you can see in the attached Excel file I have several columns of
varying length. To the right of each column there is an empty column
(coloured yellow).

What I need to do is calculate the rank of a number in the column next
to the yellow cells (e.g. range c8..c11) As you can see I need to
repeat this in this file alone several times, and this is only 1 of
several 100s of files!

I know what steps to take when doing it by hand but how can I capture
the next actions in VBA?

1. type =Rank(
2. go to the top cell of the range I need to calculate the rank and
select this cell and type ";"
3. go to the same cell, type "." and go to the bottom cell of the
needed range (simply "end-down" won't do the trick since sometimes the
range of cells has blanks)
4. make the selected cells "absolute" by typing F4
5. "enter"
6. copy the range with the ranks which I've just made and make the
values absolute through "edit-paste special and choosing values"

This last procedure is needed because I need the outcome in an
different program

I hope it is not too much asked but thanks for your helping hand

Hein


--
Hein
------------------------------------------------------------------------
Hein's Profile:
http://www.excelforum.com/member.php...o&userid=24744
View this thread: http://www.excelforum.com/showthread...hreadid=531342



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default absolute references etc in VBA

This is not just a "forum", accessible via a web page. it's also a
"newsgroup", part of Usenet. Each individual news server has its own
management which makes its own policies about whether to accept
attachments, how long to keep old messages on the server, whether to
accept new groups, and so on.

http://www.smr-usenet.com/tech/how.shtml

Steven


Je Sun, 9 Apr 2006 15:24:59 -0700, "L. Howard Kittle"
skribis:

Hi Hein,

I believe that attachments are stripped when sent to this forum. At least I
haven't seen any for months and it seems I read a similar reply to an
attachment post.
If you know how you could post a link. I don't know so can't help you
there. Some folk post a screen shot with a link and I don't know how to do
that either.

But, to your problem.
Turn on the macro recorder and do all the stuff you listed and take a look
at that. If the code needs tinkering with, you can post the code along with
details.

HTH
Regards,
Howard

"Hein" wrote in message
...

Hi all
I am not an experienced writer of VBA but I would like to capture my
next problem since this comes back quite a lot.

As you can see in the attached Excel file I have several columns of
varying length. To the right of each column there is an empty column
(coloured yellow).

What I need to do is calculate the rank of a number in the column next
to the yellow cells (e.g. range c8..c11) As you can see I need to
repeat this in this file alone several times, and this is only 1 of
several 100s of files!

I know what steps to take when doing it by hand but how can I capture
the next actions in VBA?

1. type =Rank(
2. go to the top cell of the range I need to calculate the rank and
select this cell and type ";"
3. go to the same cell, type "." and go to the bottom cell of the
needed range (simply "end-down" won't do the trick since sometimes the
range of cells has blanks)
4. make the selected cells "absolute" by typing F4
5. "enter"
6. copy the range with the ranks which I've just made and make the
values absolute through "edit-paste special and choosing values"

This last procedure is needed because I need the outcome in an
different program

I hope it is not too much asked but thanks for your helping hand



--
Steven M - lid
(remove wax and invalid to reply)

A fool and his money are soon elected. -- Will Rogers
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default absolute references etc in VBA


Hi Steve and Howard

I believe I forgot to attach the file, sorry for that (hope it will
work?!)


I tried to do it by recording the actions but I didn't get the results
I wanted.

Hopefully the attachment is coming through

Thanks Hein


+-------------------------------------------------------------------+
|Filename: Demo.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4611 |
+-------------------------------------------------------------------+

--
Hein
------------------------------------------------------------------------
Hein's Profile: http://www.excelforum.com/member.php...o&userid=24744
View this thread: http://www.excelforum.com/showthread...hreadid=531342

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
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
Absolute References Dan Beard Excel Discussion (Misc queries) 3 October 16th 07 03:20 AM
Absolute References [email protected] Excel Worksheet Functions 1 November 29th 06 12:41 AM
Absolute references BWGames Excel Programming 1 December 31st 03 10:52 AM


All times are GMT +1. The time now is 07:14 PM.

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

About Us

"It's about Microsoft Excel"