LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Automatic Config Tool Question

Sub ABC()
Dim v As Long, i As Long
v = Range("M6") '<== replace with actual cell address
i = 1
Do While Not IsEmpty(Cells(i, 1))
cnt = v \ Cells(i, 1)
Cells(i, 2) = cnt
v = v Mod Cells(i, 1)
i = i + 1
Loop
If v < 0 Then
Cells(i - 1, 2) = Cells(i - 1, 2) + 1
End If
End Sub

--
Regards,
Tom Ogilvy

"Crumb" wrote in message
ps.com...
I want to use a cell value and not a input box for the users value, How
do I do this?

Thanks



 
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
best config ekkeindoha Excel Worksheet Functions 2 February 8th 10 11:04 AM
Config Now() troubles Libbyc80 Excel Worksheet Functions 0 April 7th 08 06:34 PM
Deployment and config files lb Excel Programming 0 October 18th 05 10:41 PM
tool bar question Brian Excel Worksheet Functions 2 November 28th 04 05:55 PM
Creating and using a config file Steven Excel Programming 1 January 20th 04 10:04 AM


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