Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BT Bill
 
Posts: n/a
Default Training on macros in Excel97 using Windows 98


British Telecom use hhhh:mm:ss time format in downloaded bills, which
Excel97 does not recognise. Cannot re-format to hh:mm:ss - Excel does not
recognise hhhh:mm:ss as a numeric format ??. Tried (with no experience) to
create a macro but having set it up to remove first two h's from first ten
entries (of 546) when I applied the macro to entry eleven, it simply
replicated the values of the first ten.

Can anybody tell me what to do or where I can find out more about macros
than is in Excel97's "Help" section ?
  #2   Report Post  
Andy Brown
 
Posts: n/a
Default

"BT Bill" wrote in message
...

when I applied the macro to entry eleven, it simply
replicated the values of the first ten.


This happens when your code uses absolute references rather than relative
references. If you have:

Range("A1") = 1

, you get 1 in A1. But

ActiveCell = 1

gives you one in the cell that's selected when you start the code.

If you used the macro recorder, try again. When the "Stop Recording"
toolbar's visible, notice that it has a "Relative Reference" button. When
you click this, everything you do from then on is recorded in relative (to
the active cell) mode -- until you click it again (it toggles on & off).

Post your code here if you wish ; ultimately, you'll need something *like*:

For Each Cell In Selection
Cell.Value = Right(Cell, (Len(Cell) - 2))
Next Cell

Rgds,
Andy


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
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Date issue between Windows and Macintosh version dlg1967 Excel Discussion (Misc queries) 4 January 19th 05 03:51 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM
The available macros list in XL; how to suppress filename from showing KR Excel Discussion (Misc queries) 1 January 10th 05 07:20 PM
Windows ME and Windows XP Function of key F2 is different jimnav Excel Worksheet Functions 2 November 21st 04 07:05 PM


All times are GMT +1. The time now is 11:01 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"