Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Easy VBA "Range" question
Name: 24HG_Hoop Date: March 8, 2008 at 10:58:41 Pacific OS: XP CPU/Ram: 3200/2G Product: clone
Comment:
Easy enough, I'm trying to copy a template and let the user define where they was the template copied. The problem is in the Range statement. All of the help files say that the range has to be a cell reference, but the InputBox command says that you CAN ask for a range by adding the "type:=8" at the end of the InputBox statement.
Any ideas?
Sub COPY_TEMPLATE() ' ' COPY_TEMPLATE Macro '
' Range("A3:J33").Select Selection.Copy Set myRange = Application.InputBox(prompt:="What CELL do you want to put it in?", Type:=8) Range("myRange").Select ActiveSheet.Paste
Summary: I am doing some error handling in my code and am trying to write an IF statement where if a certain condition is met the program will end. i.e. If x = 0 Then End Program. Something like that. Any ...
Summary: I think some context is lost... have you tried "for /?" If you still cant understand, i will try to explain... c:\>for /? Runs a specified command for each file in a set of files. FOR %variable IN (s...
Summary: I am trying to write code (newbie here) to allow me to process the 1st 500 rows of an excel spreadsheet and replace certain cell values using a dynamic raning scheme: Dim intCredit As Integer Dim s...