I'm new here so I apologize ahead of time for any errors I make in this thread.
Every week I am sent a small database of information on Excel. I need to take this worksheet and make a variety of conversions to it which involve various formulas, deleting cells, etc. After that is done, the information is imported into Access. Creating the macro and formulas to do this has not been much of an issue for me. However, part of the process is to use a column of formulas to analyze some of the data on the original sheet and create values which are compatible with my access worksheet, after which the columns of data which these values are derived from are deleted. I originally tried to do a simple copy and "paste values" of the worksheet, or the cells in question, which worked fine in Excel. However, I figured out that when I would then try to import the worksheet into Access, Access would not take the worksheet after I had used "paste special". So far the only thing that I have found to work is "F2 F9 Enter." I tried a Sendkey macro which would loop through the filled cells in the worksheet and apply "F2 F9 Enter." This seemed to work fine by itself, however, when I tried to insert that code in the middle of my macro something goes wrong.
Below is my macro:
The part toward the bottom where I leave a blank space is where I need to enter the code I've been having issues with. The code I've tried to use it below:
Any suggestions would be appreciated, and I would also appreciate any suggestions to my overall macro.
Thanks,
Erik
Bookmarks