Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 07-30-2018, 08:34 AM
p45cal's Avatar
p45cal p45cal is offline Convert range format to number Windows 10 Convert range format to number Office 2016
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

try:
Code:
With sht.Range("K2:N" & LR)
  .NumberFormat = "General"
  .Value = .Value
End With
You don't seem to have assigned anything to lastrow, but you have assigned something to LR.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert range format to number Format a range of cells Dave T Excel Programming 1 06-01-2016 08:58 PM
Convert range format to number How to format a TOC (level 1) using a number, but have the number hidden in the text porpoiseoil Word 1 09-13-2014 12:53 PM
IF statement - number range irhut Mail Merge 1 02-11-2014 11:20 PM
Change from General Format to number format gbaker Excel 3 08-16-2013 01:04 PM
Convert range format to number Cannot Convert Text Cell to number format to be able to sort the data jyfuller Excel 10 06-19-2013 05:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:35 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