Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2012, 04:30 AM
macropod's Avatar
macropod macropod is offline changing Windows 7 64bit changing Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I've look at your workbook. It's nothing like the image attached in your first post and there is still nothing to indicate what any input boxes might be used for.

Perhaps you want code like the following:
Code:
Sub CombineValues()
Dim i As Long
With ActiveSheet
  For i = 1 To .Range("B" & .Cells.SpecialCells(xlCellTypeLastCell).Row).End(xlUp).Row
      .Range("B" & i).Value = .Range("A" & i).Value + Evaluate(.Range("B" & i).Value)
      .Range("B" & i).NumberFormat = "General"
  Next
End With
End Sub

__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-07-2012, 04:48 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

Quote:
Originally Posted by macropod View Post
I've look at your workbook. It's nothing like the image attached in your first post and there is still nothing to indicate what any input boxes might be used for.

Perhaps you want code like the following:
Code:
Sub CombineValues()
Dim i As Long
With ActiveSheet
  For i = 1 To .Range("B" & .Cells.SpecialCells(xlCellTypeLastCell).Row).End(xlUp).Row
      .Range("B" & i).Value = .Range("A" & i).Value + Evaluate(.Range("B" & i).Value)
      .Range("B" & i).NumberFormat = "General"
  Next
End With
End Sub
if there is text means
change this Evaluate(.Range("B" & i).Value)

Reply With Quote
Reply



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 11:20 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