will.smith3
New Member
Hi Everyone, here is my initial post to the forum! I have been working in Excel VBA for the past few months and have watched the whole tutorial from the great folks over at WiseOwl on Excel VBA (https://www.youtube.com/playlist?list=PLNIs-AWhQzckr8Dgmgb3akx_gFMnpxTN5), but I cannot seem to figure this problem out.
I want to keep adding columns after D1 "Week Created", shifting to the right, until I get to 10. But I can't figure out how to set the range properly in the WorksheetFunction below.
I want to keep adding columns after D1 "Week Created", shifting to the right, until I get to 10. But I can't figure out how to set the range properly in the WorksheetFunction below.
Code:
'inserts blank columns to prep for the insertion into the new worksheet
'Columns("H:O").Insert Shift:=xlToRight
'<< FIX ME >>
'insert IF statement to count the number of cells between Short Description (G) and Priority
'This way we will not keep adding columns; 10 columns are needed.
BlankColumnCount = Application.WorksheetFunction.CountBlank(Range("C:J"))
Do Until BlankColumnCount = 10
Columns("H").Insert Shift:=xlToRight
Loop