Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2014, 10:11 AM
excelledsoftware excelledsoftware is offline Macros are VERY slow to run Windows 7 64bit Macros are VERY slow to run Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

No problem, This procedure can be accomplished with about 8 lines of code. Could you post your workbook with the desired result so I can be sure I write it correctly for you. Otherwise I just need to know what you are trying to do with the data. What I can see now is the the data in column T gets copied to column AN. Once it is pasted in AN the data somehow spans to column BP which is the part I dont think is necessary but again I need to see the spreadsheet to be sure. Then column AN gets selected and a text to columns is done. Afterwards each column is processed with a formula and then filled down.



Now if I assume correctly you have data in column T that needs to be changed from 1,2,3,4,5 to 001,002,003,004,005. Now if this is the case again we can write code to do it but You could also just a write a substitute formula in column U and then double click to autofill down. This formula typed in T2 and then autofilled down would work.
Code:
="00"&SUBSTITUTE(T2,",",",00")
The 00 at the beginning is to account for the first number. If this doesnt work the way you were looking post your book with the data on 1 worksheet before your code was run and then on a 2nd worksheet the desired result. Once I have this I think I can have it written in about 15 minutes once I start.

Let me know

Thanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook '07--snail slow markg2 Outlook 0 07-09-2014 09:42 AM
Macros are VERY slow to run Outlook slow? erik2282 Outlook 3 12-09-2011 03:15 PM
Macros are VERY slow to run Slow load? markg2 Word 1 03-15-2011 07:10 AM
Slow (delayed) keystrokes Jim Ogren Word 0 07-23-2009 07:47 PM
slow start kevb Office 1 08-15-2008 12:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:48 PM.


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