Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default macro to divide by zero

Greetings.

I believe there is a way in VBA to have a macro divide by 1000 by
specifying a range?

Would it be possible for one of the Excel gurus to provide some sample
code, it would be greatly appreciated. Thank you.

I cannot have a formula in that cell for various reasons.

regards, Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default macro to divide by zero

Turn on the macro recorder
Find an empty cell
(I'd use ctrl-End, then down arrow to find an empty cell)
put 1000 in that cell
edit|copy

select the range to adjust
edit|Paste special|check divide

Clear that cell with 1000 in it

Stop the recorder



LetMeDoIt wrote:

Greetings.

I believe there is a way in VBA to have a macro divide by 1000 by
specifying a range?

Would it be possible for one of the Excel gurus to provide some sample
code, it would be greatly appreciated. Thank you.

I cannot have a formula in that cell for various reasons.

regards, Chris


--

Dave Peterson
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
divide by zero arknsparc Excel Discussion (Misc queries) 1 April 22nd 09 08:15 PM
Divide By help? kirstie adam Excel Worksheet Functions 2 December 5th 06 04:23 PM
divide cells using macro leg Excel Programming 2 May 30th 06 02:51 PM
Divide one row over other row I dont wont to divide one number Rick Excel Discussion (Misc queries) 0 March 4th 05 07:13 PM
Divide Expression stops in Macro when Can't divide JUAN Excel Programming 6 May 6th 04 07:05 AM


All times are GMT +1. The time now is 01:25 AM.

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"