Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-28-2012, 04:30 AM
gsrikanth gsrikanth is offline changing Windows XP changing Office XP
Competent Performer
changing
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default changing

change to macro

Code:
Sub Test()
Dim rngToChange As Range
Dim iMultiplier As String
Dim iDivisor As String
With Sheets("Sheet1")
  iMultiplier = .Range("A1").Value
  iDivisor = .Range("A2").Value
  .Range("A3").Value = iMultiplier & iDivisor
  Set rngToChange = .Range("B1:B" & .Cells(Rows.Count, "B").End(xlUp).Row)
  .Range("A3").Copy
  rngToChange.PasteSpecial _
  Paste:=xlAll, Operation:=xlMultiply, SkipBlanks:=False, Transpose:=False
  Application.CutCopyMode = False
End With
End Sub




convert to application.inputbox

Last edited by macropod; 02-06-2012 at 07:36 PM. Reason: Added code tags
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing Changing accounts on same PC cjansley Outlook 1 07-27-2011 07:36 AM
changing Changing the From field jerem Outlook 2 10-29-2010 03:04 PM
Changing list of Value xmadnet Word 0 09-07-2010 01:48 PM
Changing Word doc to .txt cialili Word 1 08-02-2010 12:38 PM
changing font size without changing leading carolns Word 1 09-14-2009 12:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft